Not longer defaults to noStdLib unless set from project

This commit is contained in:
Erik C. Thauvin 2023-11-15 12:32:24 -08:00
parent 28ad500a12
commit f5caba550d
2 changed files with 4 additions and 2 deletions

View file

@ -332,6 +332,7 @@ public class CompileKotlinOperation extends AbstractOperation<CompileKotlinOpera
* <li>{@link #testSourceFiles() testSourceFile} to the {@code kotlin} directory in
* {@link BaseProject#srcTestDirectory() srcTestDirectory}</li>
* <li>{@link CompileKotlinOptions#jdkRelease jdkRelease} to {@link BaseProject#javaRelease() javaRelease}</li>
* <li>{@link CompileKotlinOptions#noStdLib(boolean) noStdLib} to {@code true}</li>
* </ul>
*
* @param project the project to configure the compile operation from
@ -347,6 +348,7 @@ public class CompileKotlinOperation extends AbstractOperation<CompileKotlinOpera
if (project.javaRelease() != null && !compileOptions_.hasRelease()) {
compileOptions_.jdkRelease(project.javaRelease());
}
compileOptions_.noStdLib(true);
return op;
}

View file

@ -16,10 +16,10 @@
package rife.bld.extension;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.io.File;
/**
* Configuration for the Kotlin compiler options.
@ -45,7 +45,7 @@ public class CompileKotlinOptions {
private String moduleName_;
private boolean noJdk_;
private boolean noReflect_;
private boolean noStdLib_ = true;
private boolean noStdLib_;
private boolean noWarn_;
private String path_;
private boolean progressive_;