KT-16743 Update configuration options in Kotlin Maven plugin
deprecate parameters module and testModule
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -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);
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user