Add Kotlin compile options for JDK 24
This commit is contained in:
parent
23797a2a04
commit
8537c8a436
1 changed files with 4 additions and 1 deletions
|
@ -38,6 +38,7 @@ import rife.bld.extension.CompileKotlinOperation;
|
||||||
import rife.bld.extension.DetektOperation;
|
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.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;
|
||||||
|
@ -153,10 +154,12 @@ public class MobibotBuild extends Project {
|
||||||
@Override
|
@Override
|
||||||
public void compile() throws Exception {
|
public void compile() throws Exception {
|
||||||
releaseInfo();
|
releaseInfo();
|
||||||
|
final var options = new CompileOptions();
|
||||||
|
options.verbose(true).jvmOptions().add("--enable-native-access=ALL-UNNAMED");
|
||||||
var op = new CompileKotlinOperation()
|
var op = new CompileKotlinOperation()
|
||||||
.kotlinHome("/opt/kotlinc/")
|
.kotlinHome("/opt/kotlinc/")
|
||||||
|
.compileOptions(options)
|
||||||
.fromProject(this);
|
.fromProject(this);
|
||||||
op.compileOptions().verbose(true);
|
|
||||||
op.execute();
|
op.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue