Move compile options to a var

This commit is contained in:
Erik C. Thauvin 2025-03-23 03:14:35 -07:00
parent a2a5f284b6
commit bef5aed2e3
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -61,10 +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()
// .kotlinHome("path/to/kotlin")
// .kotlinc("path/to/kotlinc")
.compileOptions(new CompileOptions().verbose(true))
.compileOptions(options)
.fromProject(this);
if (!CompileKotlinOperation.isWindows()) {