Skip to content

Commit

Permalink
Use java 17 for more recent Eclipse versions
Browse files Browse the repository at this point in the history
  • Loading branch information
donat committed Jun 12, 2024
1 parent ef06560 commit 376528c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,18 @@ subprojects {
languageVersion = JavaLanguageVersion.of(8)
}
}
} else {
} else if (config.targetPlatform.eclipseVersion in ['417', '418', '419', '420', '21', '422', '423', '424'])) {
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
} else {
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
}

tasks.matching { it instanceof JavaCompile || it instanceof GroovyCompile }.all {
Expand Down

0 comments on commit 376528c

Please sign in to comment.