Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ buildscript {
google()
mavenCentral()
gradlePluginPortal()
maven(url = "https://jitpack.io")
// JitPack only ever serves its own coordinate namespaces. Without this filter it
// is queried for every artifact, and because it sits ahead of repo.gradle.org a
// transient JitPack timeout fails the build before the tooling API is ever looked
// for where it actually lives.
maven(url = "https://jitpack.io") {
content {
includeGroupByRegex("com\\.github\\..*")
includeGroupByRegex("com\\.gitlab\\..*")
includeGroupByRegex("com\\.bitbucket\\..*")
}
}
maven(url = "https://repo.gradle.org/gradle/libs-releases")
}

Expand Down
16 changes: 14 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ pluginManagement {
google()
mavenCentral()
gradlePluginPortal()
maven(url = "https://jitpack.io")
maven(url = "https://jitpack.io") {
content {
includeGroupByRegex("com\\.github\\..*")
includeGroupByRegex("com\\.gitlab\\..*")
includeGroupByRegex("com\\.bitbucket\\..*")
}
}
}
resolutionStrategy {
eachPlugin {
Expand Down Expand Up @@ -59,7 +65,13 @@ dependencyResolutionManagement {
mavenCentral()
maven(url = "https://plugins.gradle.org/m2/")
maven(url = "https://maven.fpregistry.io/releases")
maven(url = "https://jitpack.io")
maven(url = "https://jitpack.io") {
content {
includeGroupByRegex("com\\.github\\..*")
includeGroupByRegex("com\\.gitlab\\..*")
includeGroupByRegex("com\\.bitbucket\\..*")
}
}
maven(url = "https://central.sonatype.com/repository/maven-snapshots/")
}
}
Expand Down
Loading