Skip to content

Commit

Permalink
re-add 22
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy committed Aug 26, 2024
1 parent 6fd4a59 commit e29afbb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ repositories {
// Configure Java compilation tasks to enable feature previews
tasks.withType(JavaCompile).configureEach {
options.compilerArgs.add("--enable-preview")
options.release = 22
javaCompiler.set(javaToolchains.compilerFor {
// Using 15 so that we can try a feature preview
// Using 22 so that we can try a feature preview, because
// --enable-preview does not work with 21.
languageVersion.set(JavaLanguageVersion.of(22))
})
}
Expand Down

0 comments on commit e29afbb

Please sign in to comment.