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
arguments.noStdlib = true;
if (module != null) {
getLog().info("Compiling Kotlin module " + module);
arguments.module = module;
if (module != null || testModule != null) {
getLog().warn("Parameters module and testModule are deprecated and ignored, they will be removed in further release.");
}
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.
*/
@Parameter
@Deprecated
public String module;
/**
* Kotlin compilation module, as alternative to source files or folders (for tests).
*/
@Parameter
@Deprecated
public String testModule;