Kapt3: Allow users to disable error type correction (and now it's disabled by default)

This commit is contained in:
Yan Zhulanow
2017-02-06 16:17:15 +03:00
parent 297f8d4161
commit 2553513205
12 changed files with 118 additions and 11 deletions
@@ -186,6 +186,7 @@ class Kapt3KotlinGradleSubplugin : KotlinGradleSubplugin<KotlinCompile> {
}
pluginOptions += SubpluginOption("useLightAnalysis", "${kaptExtension.useLightAnalysis}")
pluginOptions += SubpluginOption("correctErrorTypes", "${kaptExtension.correctErrorTypes}")
pluginOptions += SubpluginOption("stubs", getKaptStubsDir(project, sourceSetName).canonicalPath)
if (project.hasProperty(VERBOSE_OPTION_NAME) && project.property(VERBOSE_OPTION_NAME) == "true") {
@@ -28,6 +28,8 @@ open class KaptExtension {
open var useLightAnalysis: Boolean = true
open var correctErrorTypes: Boolean = false
private var closure: Closure<*>? = null
open fun arguments(closure: Closure<*>) {