Browse Source

[gradle] Fix tests with a gradle < 7.4

pull/5126/head
Konstantin Tskhovrebov 3 months ago
parent
commit
e8f722ba64
  1. 2
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/internal/utils/providerUtils.kt

2
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/internal/utils/providerUtils.kt

@ -50,5 +50,5 @@ internal fun Provider<String?>.toBooleanProvider(defaultValue: Boolean): Provide
internal fun Project.findLocalOrGlobalProperty(name: String, default: String = ""): Provider<String> = provider {
if (extraProperties.has(name)) extraProperties.get(name).toString()
else providers.gradleProperty(name).getOrElse(default)
else providers.gradleProperty(name).forUseAtConfigurationTimeSafe().getOrElse(default)
}
Loading…
Cancel
Save