add shadow plaugin
This commit is contained in:
parent
4e069e0300
commit
db7bdffe33
@ -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>("shadowJar") {
|
||||
archiveBaseName.set("rest-api")
|
||||
mergeServiceFiles()
|
||||
manifest {
|
||||
attributes(mapOf("Main-Class" to "com.restapi.MainKt"))
|
||||
}
|
||||
isZip64 = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
application {
|
||||
mainClass.set("com.restapi.MainKt")
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user