Fix KaptWithoutKotlincTask task tries to get wrong properties.
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ abstract class KaptWithoutKotlincTask @Inject constructor(private val workerExec
|
|||||||
|
|
||||||
internal fun getValue(propertyName: String): String? =
|
internal fun getValue(propertyName: String): String? =
|
||||||
if (isGradleVersionAtLeast(6, 5)) {
|
if (isGradleVersionAtLeast(6, 5)) {
|
||||||
providers.systemProperty(propertyName).forUseAtConfigurationTime().orNull
|
providers.gradleProperty(propertyName).forUseAtConfigurationTime().orNull
|
||||||
} else {
|
} else {
|
||||||
project.findProperty(propertyName) as String?
|
project.findProperty(propertyName) as String?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user