KAPT: allow setting aptMode in the maven plugin

This fixes KT-41129
This commit is contained in:
Nicklas Ansman Giertz
2022-09-14 15:50:15 -04:00
committed by nataliya.valtman
parent 7ce3934cf7
commit 1cc46ab7fa
@@ -49,6 +49,9 @@ public class KaptJVMCompilerMojo extends K2JVMCompileMojo {
@Parameter
private List<DependencyCoordinate> annotationProcessorPaths;
@Parameter
private String aptMode = "stubsAndApt";
@Parameter
private boolean useLightAnalysis = true;
@@ -94,7 +97,7 @@ public class KaptJVMCompilerMojo extends K2JVMCompileMojo {
) {
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("correctErrorTypes", correctErrorTypes));
options.add(new KaptOption("mapDiagnosticLocations", mapDiagnosticLocations));