about summary refs log tree commit diff
path: root/third_party/apereo-cas/overlay/gradle/tasks.gradle
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2020-07-05T19·08+0000
committerlukegb <lukegb@tvl.fyi>2020-07-05T22·42+0000
commit1915fbccd69c102cde4239285ebcb4c9ca9f9322 (patch)
treea279ebc0867a6cf0c91156ab9b1432483a67bddd /third_party/apereo-cas/overlay/gradle/tasks.gradle
parent4b9fde0abe01bb09e0c30402ce89ff02bc0afb49 (diff)
feat(3p/apereo-cas): initial Nix derivation (no TVL-specific config yet) r/1219
Change-Id: Ie7d52370dd554b110bbfa041b943fcf246373b94
Reviewed-on: https://cl.tvl.fyi/c/depot/+/933
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/apereo-cas/overlay/gradle/tasks.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() }
+            }
         }
     }