Kapt: Do partial analysis only for stub generation
Kapt has a 'compile' mode which repeats analysis after the annotation processing. It should not run in the partial analysis mode.
This commit is contained in:
@@ -82,7 +82,7 @@ class ClasspathBasedKapt3Extension(
|
||||
compilerConfiguration
|
||||
) {
|
||||
override val analyzePartially: Boolean
|
||||
get() = useLightAnalysis
|
||||
get() = useLightAnalysis && super.analyzePartially
|
||||
|
||||
private var processorLoader: ProcessorLoader? = null
|
||||
|
||||
@@ -126,6 +126,9 @@ abstract class AbstractKapt3Extension(
|
||||
return false
|
||||
}
|
||||
|
||||
override val analyzePartially: Boolean
|
||||
get() = !annotationProcessingComplete
|
||||
|
||||
override fun doAnalysis(
|
||||
project: Project,
|
||||
module: ModuleDescriptor,
|
||||
|
||||
Reference in New Issue
Block a user