fix shadowjar
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-05-22 03:16:53 +02:00
parent 92a70b5611
commit 5a644573e5
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
4 changed files with 16 additions and 2 deletions

Binary file not shown.

View File

@ -8,7 +8,7 @@ RUN chown -R $APPLICATION_USER /app
USER $APPLICATION_USER USER $APPLICATION_USER
COPY ./build/libs/messagequeue-glue-1.0-SNAPSHOT.jar /app/messagequeue-glue-1.0-SNAPSHOT.jar COPY ./build/libs/messagequeue-glue.jar /app/messagequeue-glue.jar
WORKDIR /app WORKDIR /app
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "messagequeue-glue-1.0-SNAPSHOT.jar"] CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "messagequeue-glue.jar"]

View File

@ -8,12 +8,17 @@ buildscript {
} }
plugins { plugins {
application
kotlin("jvm") version "1.3.72" kotlin("jvm") version "1.3.72"
} }
group = "com.kmlabz" group = "com.kmlabz"
version = "1.0-SNAPSHOT" version = "1.0-SNAPSHOT"
application {
mainClassName = "MainKt"
}
repositories { repositories {
mavenCentral() mavenCentral()
jcenter() jcenter()
@ -29,6 +34,15 @@ dependencies {
} }
tasks { tasks {
named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
archiveBaseName.set("messagequeue-glue")
classifier = null
version = null
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "Main"))
}
}
compileKotlin { compileKotlin {
kotlinOptions.jvmTarget = "11" kotlinOptions.jvmTarget = "11"
} }