Add Kotlin example compile options for JDK 24

This commit is contained in:
Erik C. Thauvin 2025-03-20 21:36:17 -07:00
parent 6510b2b6b3
commit 3cac9171fd
Signed by: erik
GPG key ID: 776702A6A2DA330E
2 changed files with 5 additions and 2 deletions

View file

@ -125,7 +125,7 @@ public class PinboardPosterBuild extends Project {
@BuildCommand(summary = "Compiles the Kotlin project")
@Override
public void compile() throws Exception {
final var options = new CompileOptions().jvmOptions("--enable-native-access=ALL-UNNAMED");
var options = new CompileOptions().jvmOptions("--enable-native-access=ALL-UNNAMED");
new CompileKotlinOperation()
.fromProject(this)
.compileOptions(options)