about summary refs log tree commit diff
path: root/third_party/apereo-cas/overlay/gradle
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/apereo-cas/overlay/gradle')
-rw-r--r--third_party/apereo-cas/overlay/gradle/tasks.gradle17
1 files changed, 11 insertions, 6 deletions
diff --git a/third_party/apereo-cas/overlay/gradle/tasks.gradle b/third_party/apereo-cas/overlay/gradle/tasks.gradle
index 40fdac0b157c..297555b1e44d 100644
--- a/third_party/apereo-cas/overlay/gradle/tasks.gradle
+++ b/third_party/apereo-cas/overlay/gradle/tasks.gradle
@@ -10,12 +10,17 @@ import static org.gradle.internal.logging.text.StyledTextOutput.Style
 
 buildscript {
     repositories {
-        mavenLocal()
-        mavenCentral()
-        jcenter()
-        maven {
-            url "https://oss.sonatype.org/content/repositories/snapshots"
-            mavenContent { snapshotsOnly() }
+        if (rootProject.hasProperty("cacheLocation")) {
+            mavenLocal()
+            maven { url cacheLocation }
+        } else {
+            mavenLocal()
+            mavenCentral()
+            jcenter()
+            maven {
+                url "https://oss.sonatype.org/content/repositories/snapshots"
+                mavenContent { snapshotsOnly() }
+            }
         }
     }