Add jar metadata and support generating fat jars
This commit is contained in:
parent
d62bbc5f90
commit
ae13ce049f
1 changed files with 13 additions and 0 deletions
|
@ -6,6 +6,9 @@ plugins {
|
||||||
|
|
||||||
// Apply the application plugin to add support for building a CLI application in Java.
|
// Apply the application plugin to add support for building a CLI application in Java.
|
||||||
application
|
application
|
||||||
|
|
||||||
|
// For generating fat jars
|
||||||
|
id("com.github.johnrengelman.shadow") version "latest.release"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "de.jotoho"
|
group = "de.jotoho"
|
||||||
|
@ -39,6 +42,16 @@ tasks.test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.jar {
|
||||||
|
manifest {
|
||||||
|
attributes(
|
||||||
|
"Implementation-Title" to "waituntil",
|
||||||
|
"Implementation-Version" to "${project.version}",
|
||||||
|
"Main-Class" to "de.jotoho.waituntil.StartKt"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
kotlinOptions.jvmTarget = "16"
|
kotlinOptions.jvmTarget = "16"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue