Combine Kotlin compile options

This commit is contained in:
Erik C. Thauvin 2025-03-20 20:42:09 -07:00
parent 7df1c20e82
commit a2ab48e67c
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

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