diff --git a/CommonStarling_102761_45.wav b/CommonStarling_102761_45.wav new file mode 100644 index 0000000..fb4c95e Binary files /dev/null and b/CommonStarling_102761_45.wav differ diff --git a/Dockerfile b/Dockerfile index 67a98f4..422c546 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN chown -R $APPLICATION_USER /app 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 -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"] \ No newline at end of file +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"] \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 4c1b196..0988057 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,12 +8,17 @@ buildscript { } plugins { + application kotlin("jvm") version "1.3.72" } group = "com.kmlabz" version = "1.0-SNAPSHOT" +application { + mainClassName = "MainKt" +} + repositories { mavenCentral() jcenter() @@ -29,6 +34,15 @@ dependencies { } tasks { + named("shadowJar") { + archiveBaseName.set("messagequeue-glue") + classifier = null + version = null + mergeServiceFiles() + manifest { + attributes(mapOf("Main-Class" to "Main")) + } + } compileKotlin { kotlinOptions.jvmTarget = "11" } diff --git a/src/main/kotlin/Application.kt b/src/main/kotlin/Main.kt similarity index 100% rename from src/main/kotlin/Application.kt rename to src/main/kotlin/Main.kt