Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Prefer Maven Central over jboss/shibboleth mirrors for resilience

Anthony Stirling0b944a29a73d
diff --git a/build.gradle b/build.gradle
index 3f78bc6354..b131f1bd57 100644
--- a/build.gradle
+++ b/build.gradle
@@ -185,9 +185,14 @@ subprojects {
allowInsecureProtocol = true
}
}
+ // Maven Central first: it hosts the vast majority of artifacts, so Gradle
+ // never has to consult the slower/less-reliable mirrors below for them.
+ // shibboleth + jboss remain as fallbacks for the few artifacts only they
+ // serve (Gradle falls through on a 404). Keeping them ahead of Central
+ // meant a jboss outage (503) aborted resolution of common deps.
+ mavenCentral()
maven { url = "https://build.shibboleth.net/maven/releases" }
maven { url = "https://repository.jboss.org/" }
- mavenCentral()
}
configurations.configureEach {
@@ -583,8 +588,9 @@ repositories {
allowInsecureProtocol = true
}
}
- maven { url = "https://build.shibboleth.net/maven/releases" }
+ // Maven Central first (see note in the subprojects repositories block above).
mavenCentral()
+ maven { url = "https://build.shibboleth.net/maven/releases" }
}
dependencies {