Skip to content

Commit

Permalink
[gradle] Fix tests with a gradle < 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
terrakok committed Aug 28, 2024
1 parent 987968d commit e8f722b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit e8f722b

Please sign in to comment.