Combine Kotlin compile options

This commit is contained in:
Erik C. Thauvin 2025-03-20 20:36:06 -07:00
parent f8cbab5e87
commit 6510b2b6b3
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

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