Move compile options to a var
This commit is contained in:
parent
a2a5f284b6
commit
bef5aed2e3
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue