diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/internal/utils/providerUtils.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/internal/utils/providerUtils.kt index 17c565d747..11455838da 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/internal/utils/providerUtils.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/internal/utils/providerUtils.kt @@ -50,5 +50,5 @@ internal fun Provider.toBooleanProvider(defaultValue: Boolean): Provide internal fun Project.findLocalOrGlobalProperty(name: String, default: String = ""): Provider = provider { if (extraProperties.has(name)) extraProperties.get(name).toString() - else providers.gradleProperty(name).getOrElse(default) + else providers.gradleProperty(name).forUseAtConfigurationTimeSafe().getOrElse(default) } \ No newline at end of file