Fix compilation for maven build
This commit is contained in:
@@ -33,8 +33,8 @@ import java.util.List;
|
||||
public abstract class Config {
|
||||
|
||||
@NotNull
|
||||
public static Config getEmptyConfig(@NotNull Project project, @Nullable String target) {
|
||||
return new Config(project, EcmaVersion.fromString(target)) {
|
||||
public static Config getEmptyConfig(@NotNull Project project, @NotNull EcmaVersion ecmaVersion) {
|
||||
return new Config(project, ecmaVersion) {
|
||||
@NotNull
|
||||
@Override
|
||||
protected List<JetFile> generateLibFiles() {
|
||||
@@ -43,6 +43,13 @@ public abstract class Config {
|
||||
};
|
||||
}
|
||||
|
||||
//NOTE: used by mvn build
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@NotNull
|
||||
public static Config getEmptyConfig(@NotNull Project project) {
|
||||
return getEmptyConfig(project, EcmaVersion.defaultVersion());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected static final List<String> LIB_FILE_NAMES = Arrays.asList(
|
||||
"/core/annotations.kt",
|
||||
|
||||
Reference in New Issue
Block a user