Maven: do not set JVM target to null
After a236400, it's expected that the value of jvmTarget should not be
null. Otherwise ArgumentUtils.convertArgumentsToStringList fails with
NPE
This commit is contained in:
+3
-1
@@ -162,7 +162,9 @@ public class K2JVMCompileMojo extends KotlinCompileMojoBase<K2JVMCompilerArgumen
|
||||
getLog().info("Optimization is turned off");
|
||||
}
|
||||
|
||||
arguments.jvmTarget = jvmTarget;
|
||||
if (jvmTarget != null) {
|
||||
arguments.jvmTarget = jvmTarget;
|
||||
}
|
||||
|
||||
if (jdkHome != null) {
|
||||
getLog().info("Overriding JDK home path with: " + jdkHome);
|
||||
|
||||
Reference in New Issue
Block a user