Skip to content

Commit

Permalink
don't set release flag on java 9
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Jul 8, 2024
1 parent 3741b8a commit 7dfa02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sourceCompatibility = 1.8
targetCompatibility = 1.8

compileJava {
if (Jvm.current().getJavaVersion() > JavaVersion.VERSION_1_8) {
if (JavaVersion.current() >= JavaVersion.VERSION_1_10) {
options.compilerArgs.addAll(['--release', '8'])
}
options.encoding = "UTF-8"
Expand Down

0 comments on commit 7dfa02a

Please sign in to comment.