Change how kotlinc and tools display their version
- Display the Kotlin version in kotlin-gradle-plugin. This is needed because if "-version" is specified in compiler arguments, the "info" level of the message printed by the compiler in CLICompiler prevents it from being displayed by default (unless "--debug" is passed to Gradle). - Display the version of JRE the compiler is running on. This will be helpful to diagnose Java 9 related issues in the future. - In CLI, also display the executable name (kotlinc-jvm or kotlinc-js)
This commit is contained in:
-5
@@ -119,11 +119,6 @@ public abstract class CommonCompilerArguments implements Serializable {
|
||||
return new DummyImpl();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String executableScriptFileName() {
|
||||
return "kotlinc";
|
||||
}
|
||||
|
||||
public static final String WARN = "warn";
|
||||
public static final String ERROR = "error";
|
||||
public static final String ENABLE = "enable";
|
||||
|
||||
-6
@@ -88,10 +88,4 @@ public class K2JSCompilerArguments extends CommonCompilerArguments {
|
||||
arguments.moduleKind = K2JsArgumentConstants.MODULE_PLAIN;
|
||||
return arguments;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String executableScriptFileName() {
|
||||
return "kotlinc-js";
|
||||
}
|
||||
}
|
||||
|
||||
-6
@@ -146,10 +146,4 @@ public class K2JVMCompilerArguments extends CommonCompilerArguments {
|
||||
arguments.jvmTarget = JvmTarget.DEFAULT.getDescription();
|
||||
return arguments;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String executableScriptFileName() {
|
||||
return "kotlinc-jvm";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user