diff options
Diffstat (limited to 'third_party/apereo-cas/overlay')
-rw-r--r-- | third_party/apereo-cas/overlay/build.gradle | 84 | ||||
-rw-r--r-- | third_party/apereo-cas/overlay/gradle/tasks.gradle | 17 |
2 files changed, 58 insertions, 43 deletions
diff --git a/third_party/apereo-cas/overlay/build.gradle b/third_party/apereo-cas/overlay/build.gradle index 79a7e7c1be59..2b04bbc5f0cc 100644 --- a/third_party/apereo-cas/overlay/build.gradle +++ b/third_party/apereo-cas/overlay/build.gradle @@ -1,20 +1,25 @@ buildscript { repositories { - mavenLocal() - gradlePluginPortal() - mavenCentral() - jcenter() - maven { - url "https://repo.spring.io/libs-milestone" - mavenContent { releasesOnly() } - } - maven { - url "https://repo.spring.io/libs-snapshot" - mavenContent { snapshotsOnly() } - } - maven { - url "https://plugins.gradle.org/m2/" - mavenContent { releasesOnly() } + if (rootProject.hasProperty("cacheLocation")) { + mavenLocal() + maven { url cacheLocation } + } else { + mavenLocal() + gradlePluginPortal() + mavenCentral() + jcenter() + maven { + url "https://repo.spring.io/libs-milestone" + mavenContent { releasesOnly() } + } + maven { + url "https://repo.spring.io/libs-snapshot" + mavenContent { snapshotsOnly() } + } + maven { + url "https://plugins.gradle.org/m2/" + mavenContent { releasesOnly() } + } } } dependencies { @@ -27,28 +32,33 @@ buildscript { } repositories { - mavenLocal() - mavenCentral() - jcenter() - maven { - url "https://oss.sonatype.org/content/repositories/snapshots" - mavenContent { snapshotsOnly() } - } - maven { - mavenContent { releasesOnly() } - url "https://build.shibboleth.net/nexus/content/repositories/releases/" - } - maven { - mavenContent { releasesOnly() } - url "https://repo.spring.io/milestone/" - } - maven { - url "https://repo.spring.io/snapshot/" - mavenContent { snapshotsOnly() } - } - maven { - mavenContent { snapshotsOnly() } - url "https://oss.jfrog.org/artifactory/oss-snapshot-local" + if (rootProject.hasProperty("cacheLocation")) { + mavenLocal() + maven { url cacheLocation } + } else { + mavenLocal() + mavenCentral() + jcenter() + maven { + url "https://oss.sonatype.org/content/repositories/snapshots" + mavenContent { snapshotsOnly() } + } + maven { + mavenContent { releasesOnly() } + url "https://build.shibboleth.net/nexus/content/repositories/releases/" + } + maven { + mavenContent { releasesOnly() } + url "https://repo.spring.io/milestone/" + } + maven { + url "https://repo.spring.io/snapshot/" + mavenContent { snapshotsOnly() } + } + maven { + mavenContent { snapshotsOnly() } + url "https://oss.jfrog.org/artifactory/oss-snapshot-local" + } } } 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() } + } } } |