From db7bdffe33d82adb835753761d0d2de3e97c9f3f Mon Sep 17 00:00:00 2001 From: "gowthaman.b" Date: Thu, 8 Feb 2024 15:38:36 +0530 Subject: [PATCH] add shadow plaugin --- build.gradle.kts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 5abd28d..3e5d062 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,6 +3,7 @@ plugins { kotlin("kapt") version "1.9.22" id("idea") id("io.ebean") version "13.23.2" + id("com.github.johnrengelman.shadow") version "8.1.1" application } @@ -54,6 +55,18 @@ kotlin { jvmToolchain(17) } +tasks { + named("shadowJar") { + archiveBaseName.set("rest-api") + mergeServiceFiles() + manifest { + attributes(mapOf("Main-Class" to "com.restapi.MainKt")) + } + isZip64 = true + } +} + + application { mainClass.set("com.restapi.MainKt") } \ No newline at end of file