Fix KaptWithoutKotlincTask task tries to get wrong properties.

上级 48ec227a
...@@ -140,7 +140,7 @@ abstract class KaptWithoutKotlincTask @Inject constructor(private val workerExec ...@@ -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?
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册