Minor cleanups

This commit is contained in:
Erik C. Thauvin 2025-03-24 21:29:54 -07:00
parent bf82ea1920
commit 8e2415eda4
Signed by: erik
GPG key ID: 776702A6A2DA330E
3 changed files with 34 additions and 18 deletions

View file

@ -61,17 +61,11 @@ public class ExampleBuild extends Project {
@Override
public void compile() throws Exception {
// The source code located in src/main/kotlin and src/test/kotlin will be compiled
var options = new CompileOptions().verbose(true);
var op = new CompileKotlinOperation()
new CompileKotlinOperation()
// .kotlinHome("path/to/kotlin")
// .kotlinc("path/to/kotlinc")
.compileOptions(options)
.fromProject(this);
if (!CompileKotlinOperation.isWindows()) {
op.jvmOptions().enableNativeAccess(JvmOptions.ALL_UNNAMED);
}
op.execute();
.compileOptions(new CompileOptions().verbose(true))
.fromProject(this)
.execute();
}
}