Skip to content

Commit

Permalink
Force all build to be with Java 11 for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
iht committed Dec 19, 2024
1 parent 9d592e9 commit 8fbe5cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ test {
testLogging.showStandardStreams = true
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

compileJava {
options.compilerArgs.addAll(['-Xlint:deprecation', '-Xlint:unchecked'])
options.errorprone.disableWarningsInGeneratedCode = true // for @Generated
Expand Down

0 comments on commit 8fbe5cb

Please sign in to comment.