Skip to content

Commit

Permalink
Remove code that supports running the build with JDK 8
Browse files Browse the repository at this point in the history
Addition of version catalog with use of java.util.Optional
already required JDK 11 in practice anyway.
Tests can still be run with JDK 8 though.
  • Loading branch information
tbroyer committed Nov 13, 2022
1 parent 02e81ee commit e6b6aa2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions build-logic/src/main/kotlin/local/java-library.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ plugins {
id("net.ltgt.nullaway")
}

java.sourceCompatibility = JavaVersion.VERSION_1_8
if (JavaVersion.current().isJava9Compatible) {
tasks.withType<JavaCompile>().configureEach {
options.release.set(java.targetCompatibility.majorVersion.toInt())
}
tasks.withType<JavaCompile>().configureEach {
options.release.set(8)
}

dependencies {
Expand Down

0 comments on commit e6b6aa2

Please sign in to comment.