Cleanup compile command
This commit is contained in:
parent
310687cdce
commit
fedebc7ed4
1 changed files with 4 additions and 6 deletions
|
@ -39,7 +39,6 @@ import rife.bld.extension.DetektOperation;
|
||||||
import rife.bld.extension.GeneratedVersionOperation;
|
import rife.bld.extension.GeneratedVersionOperation;
|
||||||
import rife.bld.extension.JacocoReportOperation;
|
import rife.bld.extension.JacocoReportOperation;
|
||||||
import rife.bld.extension.kotlin.CompileOptions;
|
import rife.bld.extension.kotlin.CompileOptions;
|
||||||
import rife.bld.extension.kotlin.JvmOptions;
|
|
||||||
import rife.bld.operations.exceptions.ExitStatusException;
|
import rife.bld.operations.exceptions.ExitStatusException;
|
||||||
import rife.bld.publish.PomBuilder;
|
import rife.bld.publish.PomBuilder;
|
||||||
import rife.tools.FileUtils;
|
import rife.tools.FileUtils;
|
||||||
|
@ -167,11 +166,10 @@ public class MobibotBuild extends Project {
|
||||||
@Override
|
@Override
|
||||||
public void compile() throws Exception {
|
public void compile() throws Exception {
|
||||||
releaseInfo();
|
releaseInfo();
|
||||||
var options = new CompileOptions().progressive(true).verbose(true);
|
new CompileKotlinOperation()
|
||||||
var op = new CompileKotlinOperation().compileOptions(options).fromProject(this);
|
.compileOptions(new CompileOptions().progressive(true).verbose(true))
|
||||||
|
.fromProject(this)
|
||||||
op.jvmOptions().enableNativeAccess(JvmOptions.ALL_UNNAMED);
|
.execute();
|
||||||
op.execute();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue