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
|
@Override
|
||||||
public void compile() throws Exception {
|
public void compile() throws Exception {
|
||||||
// The source code located in src/main/kotlin and src/test/kotlin will be compiled
|
// 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()
|
var op = new CompileKotlinOperation()
|
||||||
// .kotlinHome("path/to/kotlin")
|
// .kotlinHome("path/to/kotlin")
|
||||||
// .kotlinc("path/to/kotlinc")
|
// .kotlinc("path/to/kotlinc")
|
||||||
.compileOptions(new CompileOptions().verbose(true))
|
.compileOptions(options)
|
||||||
.fromProject(this);
|
.fromProject(this);
|
||||||
|
|
||||||
if (!CompileKotlinOperation.isWindows()) {
|
if (!CompileKotlinOperation.isWindows()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue