Kapt3: Add 'useLightAnalysis' option to compiler and Gradle plugins

This commit is contained in:
Yan Zhulanow
2016-11-15 22:26:22 +03:00
committed by Yan Zhulanow
parent e4de840b8a
commit c2013c4d03
4 changed files with 17 additions and 2 deletions
@@ -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")
@@ -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<*>) {