KT-16743 Update configuration options in Kotlin Maven plugin
deprecate parameters module and testModule
This commit is contained in:
+2
-3
@@ -131,9 +131,8 @@ public class K2JVMCompileMojo extends KotlinCompileMojoBase<K2JVMCompilerArgumen
|
|||||||
// don't include runtime, it should be in maven dependencies
|
// don't include runtime, it should be in maven dependencies
|
||||||
arguments.noStdlib = true;
|
arguments.noStdlib = true;
|
||||||
|
|
||||||
if (module != null) {
|
if (module != null || testModule != null) {
|
||||||
getLog().info("Compiling Kotlin module " + module);
|
getLog().warn("Parameters module and testModule are deprecated and ignored, they will be removed in further release.");
|
||||||
arguments.module = module;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> classpathList = filterClassPath(project.getBasedir(), classpath);
|
List<String> classpathList = filterClassPath(project.getBasedir(), classpath);
|
||||||
|
|||||||
+2
@@ -156,12 +156,14 @@ public abstract class KotlinCompileMojoBase<A extends CommonCompilerArguments> e
|
|||||||
* Kotlin compilation module, as alternative to source files or folders.
|
* Kotlin compilation module, as alternative to source files or folders.
|
||||||
*/
|
*/
|
||||||
@Parameter
|
@Parameter
|
||||||
|
@Deprecated
|
||||||
public String module;
|
public String module;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Kotlin compilation module, as alternative to source files or folders (for tests).
|
* Kotlin compilation module, as alternative to source files or folders (for tests).
|
||||||
*/
|
*/
|
||||||
@Parameter
|
@Parameter
|
||||||
|
@Deprecated
|
||||||
public String testModule;
|
public String testModule;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user