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:52:49 +03:00
parent de35863b57
commit 6de0d79a78
5 changed files with 2 additions and 6 deletions
@@ -155,14 +155,14 @@ public abstract class KotlinCompileMojoBase<A extends CommonCompilerArguments> e
/**
* Kotlin compilation module, as alternative to source files or folders.
*/
@Parameter
@Parameter(readonly = true)
@Deprecated
public String module;
/**
* Kotlin compilation module, as alternative to source files or folders (for tests).
*/
@Parameter
@Parameter(readonly = true)
@Deprecated
public String testModule;
@@ -90,7 +90,6 @@ public class KotlinTestCompileMojo extends K2JVMCompileMojo {
@Override
protected void configureSpecificCompilerArguments(@NotNull K2JVMCompilerArguments arguments) throws MojoExecutionException {
module = testModule;
classpath = testClasspath;
arguments.friendPaths = new String[] { output };
output = testOutput;
@@ -78,7 +78,6 @@ public class KotlinTestJSCompilerMojo extends K2JSCompilerMojo {
@Override
protected void configureSpecificCompilerArguments(@NotNull K2JSCompilerArguments arguments) throws MojoExecutionException {
module = testModule;
output = testOutput;
super.configureSpecificCompilerArguments(arguments);
@@ -26,7 +26,6 @@ public class TestMetadataMojo extends MetadataMojo {
protected void configureSpecificCompilerArguments(@NotNull K2MetadataCompilerArguments arguments) throws MojoExecutionException {
String productionOutput = output;
module = testModule;
classpath = testClasspath;
// arguments.friendPaths = new String[] { productionOutput };
output = testOutput;
@@ -65,7 +65,6 @@ public class KaptTestJvmCompilerMojo extends KaptJVMCompilerMojo {
@Override
protected void configureSpecificCompilerArguments(@NotNull K2JVMCompilerArguments arguments) throws MojoExecutionException {
module = testModule;
classpath = testClasspath;
arguments.friendPaths = new String[] { output };
output = testOutput;