Use `environmentVariable`

pull/2032/head
Simon Marquis 2 weeks ago
parent 83e00f6b32
commit 86245e2dd0

@ -35,7 +35,7 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
// Apply Google's OSS Licenses plugin only on CI to avoid breaking configuration cache on local builds
// https://github.com/google/play-services-plugins/issues/246
if (providers.gradleProperty("CI").isPresent) apply(plugin = "com.google.android.gms.oss-licenses-plugin")
if (providers.environmentVariable("CI").isPresent) apply(plugin = "com.google.android.gms.oss-licenses-plugin")
extensions.configure<ApplicationExtension> {
configureKotlinAndroid(this)

Loading…
Cancel
Save