Combine Kotlin compile options

This commit is contained in:
Erik C. Thauvin 2025-03-20 20:43:20 -07:00
parent ac329058d3
commit 926c20e8b2
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -121,8 +121,7 @@ public class CryptoPriceBuild 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(); final 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)