Fix KaptWithoutKotlincTask task tries to get wrong properties.

This commit is contained in:
Yahor Berdnikau
2021-02-08 17:34:25 +01:00
parent 48ec227aaf
commit 7a9315e6b6
@@ -140,7 +140,7 @@ abstract class KaptWithoutKotlincTask @Inject constructor(private val workerExec
internal fun getValue(propertyName: String): String? =
if (isGradleVersionAtLeast(6, 5)) {
providers.systemProperty(propertyName).forUseAtConfigurationTime().orNull
providers.gradleProperty(propertyName).forUseAtConfigurationTime().orNull
} else {
project.findProperty(propertyName) as String?
}