Always target Java 16 during compilation

This commit is contained in:
Jonas Tobias Hopusch 2021-09-05 21:12:28 +02:00
parent 02b5bb493b
commit 2d7357f5d0
Failed to generate hash of commit
2 changed files with 14 additions and 1 deletions

View file

@ -36,6 +36,19 @@ dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test-junit") testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
} }
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
}
tasks {
compileKotlin {
kotlinOptions {
jvmTarget = "16"
}
}
}
application { application {
// Define the main class for the application. // Define the main class for the application.
mainClass.set("de.jotoho.waituntil.StartKt") mainClass.set("de.jotoho.waituntil.StartKt")

View file

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
kotlinc app/src/main/kotlin/de/jotoho/waituntil/start.kt -include-runtime -d waituntil.jar kotlinc app/src/main/kotlin/de/jotoho/waituntil/start.kt -jvm-target 16 -include-runtime -d waituntil.jar