Kapt3: Add 'useLightAnalysis' option to compiler and Gradle plugins
This commit is contained in:
committed by
Yan Zhulanow
parent
e4de840b8a
commit
c2013c4d03
+1
@@ -162,6 +162,7 @@ class Kapt3KotlinGradleSubplugin : KotlinGradleSubplugin<KotlinCompile> {
|
||||
}
|
||||
|
||||
pluginOptions += SubpluginOption("aptOnly", "true")
|
||||
pluginOptions += SubpluginOption("useLightAnalysis", "${kaptExtension.useLightAnalysis}")
|
||||
|
||||
if (project.hasProperty(VERBOSE_OPTION_NAME) && project.property(VERBOSE_OPTION_NAME) == "true") {
|
||||
pluginOptions += SubpluginOption("verbose", "true")
|
||||
|
||||
+2
@@ -26,6 +26,8 @@ open class KaptExtension {
|
||||
|
||||
open var inheritedAnnotations: Boolean = true
|
||||
|
||||
open var useLightAnalysis: Boolean = true
|
||||
|
||||
private var closure: Closure<*>? = null
|
||||
|
||||
open fun arguments(closure: Closure<*>) {
|
||||
|
||||
Reference in New Issue
Block a user