From 7a9315e6b65fc6d71ab8ed6befc031bffdbd7c78 Mon Sep 17 00:00:00 2001 From: Yahor Berdnikau Date: Mon, 8 Feb 2021 17:34:25 +0100 Subject: [PATCH] Fix KaptWithoutKotlincTask task tries to get wrong properties. --- .../kotlin/gradle/internal/kapt/KaptWithoutKotlincTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/KaptWithoutKotlincTask.kt b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/KaptWithoutKotlincTask.kt index e6c23f37ad8..c10b141ae11 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/KaptWithoutKotlincTask.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/KaptWithoutKotlincTask.kt @@ -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? }