summaryrefslogtreecommitdiff
path: root/build-logic/android-plugins/build.gradle.kts
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-05-25 17:59:04 +0530
committerGitHub <noreply@github.com>2022-05-25 12:29:04 +0000
commit9d3312611e3f16414d60a717770befeedec9319b (patch)
tree0eedd70adc834d5b4f7b6455fccad034d33586f5 /build-logic/android-plugins/build.gradle.kts
parent5f4bc7fafde92f18453571054dbdc3b29d196416 (diff)
Instate shadow jobs (#1923)
Diffstat (limited to 'build-logic/android-plugins/build.gradle.kts')
-rw-r--r--build-logic/android-plugins/build.gradle.kts14
1 files changed, 14 insertions, 0 deletions
diff --git a/build-logic/android-plugins/build.gradle.kts b/build-logic/android-plugins/build.gradle.kts
index 1ffce784..15314965 100644
--- a/build-logic/android-plugins/build.gradle.kts
+++ b/build-logic/android-plugins/build.gradle.kts
@@ -39,3 +39,17 @@ dependencies {
implementation(libs.build.semver)
implementation(libs.build.sentry)
}
+
+configurations.all {
+ resolutionStrategy.eachDependency {
+ val overrideName =
+ "GRADLE_VERSION_OVERRIDE_${requested.group.replace('.', '_')}_${requested.name}"
+ val overridenVersion = System.getenv(overrideName)
+ if (!overridenVersion.isNullOrEmpty()) {
+ project.logger.lifecycle(
+ "Overriding dependency ${requested.group}:${requested.name} to version ${overridenVersion}"
+ )
+ useVersion(overridenVersion)
+ }
+ }
+}