KT-16743 Update configuration options in Kotlin Maven plugin

deprecate parameters module and testModule
This commit is contained in:
Sergey Mashkov
2017-03-23 12:48:26 +03:00
parent e182290f54
commit e6b729d38b
2 changed files with 4 additions and 3 deletions
@@ -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);
@@ -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;