Skip to content

Commit d2ce1e6

Browse files
committed
do not set jvmTarget, use default for java 1.8 support
1 parent 67d9a6c commit d2ce1e6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

build.gradle.kts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,33 +34,33 @@ dependencies {
3434
defaultTasks("assemble")
3535

3636
// https://docs.gradle.org/current/userguide/compatibility.html
37-
val javaVersion = "11"
37+
// val javaVersion = JvmTarget.JVM_11 // default depends on kotlin release, should be 8 for now
3838
val kotlinVersion = "1.7"
3939
tasks.apply {
4040

4141
// Kotlin
4242
compileKotlin {
4343
kotlinOptions {
44-
jvmTarget = javaVersion
44+
//jvmTarget = javaVersion
4545
languageVersion = kotlinVersion
4646
}
4747
}
4848
compileTestKotlin {
4949
kotlinOptions {
50-
jvmTarget = javaVersion
50+
//jvmTarget = javaVersion
5151
languageVersion = kotlinVersion
5252
}
5353
}
5454

55-
// Java
56-
compileJava {
57-
sourceCompatibility = javaVersion
58-
targetCompatibility = javaVersion
59-
}
60-
compileTestJava {
61-
sourceCompatibility = javaVersion
62-
targetCompatibility = javaVersion
63-
}
55+
// Java
56+
// compileJava {
57+
// sourceCompatibility = javaVersion
58+
// targetCompatibility = javaVersion
59+
// }
60+
// compileTestJava {
61+
// sourceCompatibility = javaVersion
62+
// targetCompatibility = javaVersion
63+
// }
6464
}
6565

6666
// ================= PUBLISHING ================

0 commit comments

Comments
 (0)