Skip to content

Commit

Permalink
✨ Use JDK 17 toolchain for building, target java 11 bytecode
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandens committed Feb 20, 2023
1 parent 4f523ff commit 82b4ae0
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,20 @@ gradlePlugin {

tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.jvmTarget = "11"
kotlinOptions.allWarningsAsErrors = true
}
}

tasks.withType<JavaCompile> {
options.isDeprecation = true
options.release.set(11)
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

// Add a source set for the functional test suite
Expand Down

0 comments on commit 82b4ae0

Please sign in to comment.