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:
Yan Zhulanow
2018-10-29 14:07:13 +09:00
parent 69ec958aab
commit 4e84a6b601
@@ -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,