Add --version commandline flag and support executable jar files with Gradle #12

Merged
jotoho merged 4 commits from version-and-fat-jars into master 2021-09-19 22:18:15 +02:00
Showing only changes of commit ae13ce049f - Show all commits

View file

@ -6,6 +6,9 @@ plugins {
// Apply the application plugin to add support for building a CLI application in Java.
application
// For generating fat jars
id("com.github.johnrengelman.shadow") version "latest.release"
}
group = "de.jotoho"
@ -39,6 +42,16 @@ tasks.test {
useJUnitPlatform()
}
tasks.jar {
manifest {
attributes(
"Implementation-Title" to "waituntil",
"Implementation-Version" to "${project.version}",
"Main-Class" to "de.jotoho.waituntil.StartKt"
)
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "16"
}