Combine Kotlin compile options

This commit is contained in:
Erik C. Thauvin 2025-03-20 10:56:58 -07:00
parent 24e6da2305
commit 061727151b
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -117,8 +117,7 @@ public class ReadingTimeBuild 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");
var options = new CompileOptions().jvmOptions("--enable-native-access=ALL-UNNAMED");
new CompileKotlinOperation()
.fromProject(this)
.compileOptions(options)