-
- All Implemented Interfaces:
public interface KaptExtensionConfigDSL extension used to configure KAPT stub generation and KAPT annotation processing.
-
-
Method Summary
Modifier and Type Method Description abstract UnitannotationProcessor(String fqName)Adds annotation processor with the specified fqName to the list of processors to run. abstract UnitannotationProcessors(String fqName)Adds annotation processors with the specified fqName to the list of processors to run. abstract Unitarguments(Function1<KaptArguments, Unit> action)Configure KaptArguments used for annotation processing. abstract UnitjavacOptions(Function1<KaptJavacOption, Unit> action)Configure KaptJavacOption used for annotation processing. abstract Map<String, String>getJavacOptions()Gets all javac options used for KAPT. abstract BooleangetIncludeCompileClasspath()If true, compile classpath should be used to search for annotation processors.abstract UnitsetIncludeCompileClasspath(Boolean includeCompileClasspath)If true, compile classpath should be used to search for annotation processors.abstract BooleangetUseLightAnalysis()If true, skip body analysis if possible.abstract UnitsetUseLightAnalysis(Boolean useLightAnalysis)If true, skip body analysis if possible.abstract BooleangetCorrectErrorTypes()If true, replace generated or error types with ones from the generated sources.abstract UnitsetCorrectErrorTypes(Boolean correctErrorTypes)If true, replace generated or error types with ones from the generated sources.abstract BooleangetDumpDefaultParameterValues()If true, put initializers on fields when corresponding primary constructor parameters have a default value specified.abstract UnitsetDumpDefaultParameterValues(Boolean dumpDefaultParameterValues)If true, put initializers on fields when corresponding primary constructor parameters have a default value specified.abstract BooleangetMapDiagnosticLocations()If true, map diagnostic reported on kapt stubs to original locations in Kotlin sources.abstract UnitsetMapDiagnosticLocations(Boolean mapDiagnosticLocations)If true, map diagnostic reported on kapt stubs to original locations in Kotlin sources.abstract BooleangetStrictMode()If true, show errors on incompatibilities during stub generation.abstract UnitsetStrictMode(Boolean strictMode)If true, show errors on incompatibilities during stub generation.abstract BooleangetStripMetadata()If true, strip @Metadata annotations from stubs.abstract UnitsetStripMetadata(Boolean stripMetadata)If true, strip @Metadata annotations from stubs.abstract BooleangetShowProcessorStats()If true, show annotation processor stats.abstract UnitsetShowProcessorStats(Boolean showProcessorStats)If true, show annotation processor stats.abstract StringgetDetectMemoryLeaks()If true, detect memory leaks in annotation processors.abstract UnitsetDetectMemoryLeaks(String detectMemoryLeaks)If true, detect memory leaks in annotation processors.abstract BooleangetUseBuildCache()Opt-out switch for Kapt caching. abstract UnitsetUseBuildCache(Boolean useBuildCache)Opt-out switch for Kapt caching. abstract BooleangetKeepJavacAnnotationProcessors()If true keeps annotation processors added via annotationProcessor(..)configuration for javac java-files compilationabstract UnitsetKeepJavacAnnotationProcessors(Boolean keepJavacAnnotationProcessors)If true keeps annotation processors added via annotationProcessor(..)configuration for javac java-files compilation-
-
Method Detail
-
annotationProcessor
abstract Unit annotationProcessor(String fqName)
Adds annotation processor with the specified fqName to the list of processors to run.
-
annotationProcessors
abstract Unit annotationProcessors(String fqName)
Adds annotation processors with the specified fqName to the list of processors to run.
-
arguments
abstract Unit arguments(Function1<KaptArguments, Unit> action)
Configure KaptArguments used for annotation processing.
-
javacOptions
abstract Unit javacOptions(Function1<KaptJavacOption, Unit> action)
Configure KaptJavacOption used for annotation processing.
-
getJavacOptions
abstract Map<String, String> getJavacOptions()
Gets all javac options used for KAPT.
-
getIncludeCompileClasspath
abstract Boolean getIncludeCompileClasspath()
If
true, compile classpath should be used to search for annotation processors.
-
setIncludeCompileClasspath
abstract Unit setIncludeCompileClasspath(Boolean includeCompileClasspath)
If
true, compile classpath should be used to search for annotation processors.
-
getUseLightAnalysis
abstract Boolean getUseLightAnalysis()
If
true, skip body analysis if possible.
-
setUseLightAnalysis
abstract Unit setUseLightAnalysis(Boolean useLightAnalysis)
If
true, skip body analysis if possible.
-
getCorrectErrorTypes
abstract Boolean getCorrectErrorTypes()
If
true, replace generated or error types with ones from the generated sources.
-
setCorrectErrorTypes
abstract Unit setCorrectErrorTypes(Boolean correctErrorTypes)
If
true, replace generated or error types with ones from the generated sources.
-
getDumpDefaultParameterValues
abstract Boolean getDumpDefaultParameterValues()
If
true, put initializers on fields when corresponding primary constructor parameters have a default value specified.
-
setDumpDefaultParameterValues
abstract Unit setDumpDefaultParameterValues(Boolean dumpDefaultParameterValues)
If
true, put initializers on fields when corresponding primary constructor parameters have a default value specified.
-
getMapDiagnosticLocations
abstract Boolean getMapDiagnosticLocations()
If
true, map diagnostic reported on kapt stubs to original locations in Kotlin sources.
-
setMapDiagnosticLocations
abstract Unit setMapDiagnosticLocations(Boolean mapDiagnosticLocations)
If
true, map diagnostic reported on kapt stubs to original locations in Kotlin sources.
-
getStrictMode
abstract Boolean getStrictMode()
If
true, show errors on incompatibilities during stub generation.
-
setStrictMode
abstract Unit setStrictMode(Boolean strictMode)
If
true, show errors on incompatibilities during stub generation.
-
getStripMetadata
abstract Boolean getStripMetadata()
If
true, strip @Metadata annotations from stubs.
-
setStripMetadata
abstract Unit setStripMetadata(Boolean stripMetadata)
If
true, strip @Metadata annotations from stubs.
-
getShowProcessorStats
abstract Boolean getShowProcessorStats()
If
true, show annotation processor stats.
-
setShowProcessorStats
abstract Unit setShowProcessorStats(Boolean showProcessorStats)
If
true, show annotation processor stats.
-
getDetectMemoryLeaks
abstract String getDetectMemoryLeaks()
If
true, detect memory leaks in annotation processors.
-
setDetectMemoryLeaks
abstract Unit setDetectMemoryLeaks(String detectMemoryLeaks)
If
true, detect memory leaks in annotation processors.
-
getUseBuildCache
abstract Boolean getUseBuildCache()
Opt-out switch for Kapt caching. Should be used when annotation processors used by this project are suspected of using anything aside from the task inputs in their logic and are not guaranteed to produce the same output on subsequent runs without input changes.
-
setUseBuildCache
abstract Unit setUseBuildCache(Boolean useBuildCache)
Opt-out switch for Kapt caching. Should be used when annotation processors used by this project are suspected of using anything aside from the task inputs in their logic and are not guaranteed to produce the same output on subsequent runs without input changes.
-
getKeepJavacAnnotationProcessors
abstract Boolean getKeepJavacAnnotationProcessors()
If true keeps annotation processors added via
annotationProcessor(..)configuration for javac java-files compilation
-
setKeepJavacAnnotationProcessors
abstract Unit setKeepJavacAnnotationProcessors(Boolean keepJavacAnnotationProcessors)
If true keeps annotation processors added via
annotationProcessor(..)configuration for javac java-files compilation
-
-
-
-