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.
|
* Kotlin compilation module, as alternative to source files or folders.
|
||||||
*/
|
*/
|
||||||
@Parameter
|
@Parameter(readonly = true)
|
||||||
@Deprecated
|
@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(readonly = true)
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String testModule;
|
public String testModule;
|
||||||
|
|
||||||
|
|||||||
-1
@@ -90,7 +90,6 @@ public class KotlinTestCompileMojo extends K2JVMCompileMojo {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void configureSpecificCompilerArguments(@NotNull K2JVMCompilerArguments arguments) throws MojoExecutionException {
|
protected void configureSpecificCompilerArguments(@NotNull K2JVMCompilerArguments arguments) throws MojoExecutionException {
|
||||||
module = testModule;
|
|
||||||
classpath = testClasspath;
|
classpath = testClasspath;
|
||||||
arguments.friendPaths = new String[] { output };
|
arguments.friendPaths = new String[] { output };
|
||||||
output = testOutput;
|
output = testOutput;
|
||||||
|
|||||||
-1
@@ -78,7 +78,6 @@ public class KotlinTestJSCompilerMojo extends K2JSCompilerMojo {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void configureSpecificCompilerArguments(@NotNull K2JSCompilerArguments arguments) throws MojoExecutionException {
|
protected void configureSpecificCompilerArguments(@NotNull K2JSCompilerArguments arguments) throws MojoExecutionException {
|
||||||
module = testModule;
|
|
||||||
output = testOutput;
|
output = testOutput;
|
||||||
|
|
||||||
super.configureSpecificCompilerArguments(arguments);
|
super.configureSpecificCompilerArguments(arguments);
|
||||||
|
|||||||
-1
@@ -26,7 +26,6 @@ public class TestMetadataMojo extends MetadataMojo {
|
|||||||
protected void configureSpecificCompilerArguments(@NotNull K2MetadataCompilerArguments arguments) throws MojoExecutionException {
|
protected void configureSpecificCompilerArguments(@NotNull K2MetadataCompilerArguments arguments) throws MojoExecutionException {
|
||||||
String productionOutput = output;
|
String productionOutput = output;
|
||||||
|
|
||||||
module = testModule;
|
|
||||||
classpath = testClasspath;
|
classpath = testClasspath;
|
||||||
// arguments.friendPaths = new String[] { productionOutput };
|
// arguments.friendPaths = new String[] { productionOutput };
|
||||||
output = testOutput;
|
output = testOutput;
|
||||||
|
|||||||
-1
@@ -65,7 +65,6 @@ public class KaptTestJvmCompilerMojo extends KaptJVMCompilerMojo {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void configureSpecificCompilerArguments(@NotNull K2JVMCompilerArguments arguments) throws MojoExecutionException {
|
protected void configureSpecificCompilerArguments(@NotNull K2JVMCompilerArguments arguments) throws MojoExecutionException {
|
||||||
module = testModule;
|
|
||||||
classpath = testClasspath;
|
classpath = testClasspath;
|
||||||
arguments.friendPaths = new String[] { output };
|
arguments.friendPaths = new String[] { output };
|
||||||
output = testOutput;
|
output = testOutput;
|
||||||
|
|||||||
Reference in New Issue
Block a user