KAPT: allow setting aptMode in the maven plugin
This fixes KT-41129
This commit is contained in:
committed by
nataliya.valtman
parent
7ce3934cf7
commit
1cc46ab7fa
+4
-1
@@ -49,6 +49,9 @@ public class KaptJVMCompilerMojo extends K2JVMCompileMojo {
|
|||||||
@Parameter
|
@Parameter
|
||||||
private List<DependencyCoordinate> annotationProcessorPaths;
|
private List<DependencyCoordinate> annotationProcessorPaths;
|
||||||
|
|
||||||
|
@Parameter
|
||||||
|
private String aptMode = "stubsAndApt";
|
||||||
|
|
||||||
@Parameter
|
@Parameter
|
||||||
private boolean useLightAnalysis = true;
|
private boolean useLightAnalysis = true;
|
||||||
|
|
||||||
@@ -94,7 +97,7 @@ public class KaptJVMCompilerMojo extends K2JVMCompileMojo {
|
|||||||
) {
|
) {
|
||||||
List<KaptOption> options = new ArrayList<>();
|
List<KaptOption> options = new ArrayList<>();
|
||||||
|
|
||||||
options.add(new KaptOption("aptMode", "stubsAndApt"));
|
options.add(new KaptOption("aptMode", aptMode));
|
||||||
options.add(new KaptOption("useLightAnalysis", useLightAnalysis));
|
options.add(new KaptOption("useLightAnalysis", useLightAnalysis));
|
||||||
options.add(new KaptOption("correctErrorTypes", correctErrorTypes));
|
options.add(new KaptOption("correctErrorTypes", correctErrorTypes));
|
||||||
options.add(new KaptOption("mapDiagnosticLocations", mapDiagnosticLocations));
|
options.add(new KaptOption("mapDiagnosticLocations", mapDiagnosticLocations));
|
||||||
|
|||||||
Reference in New Issue
Block a user