Skip to content

Commit

Permalink
Prioritise Maven Central ahead of Gradle Plugin Portal
Browse files Browse the repository at this point in the history
GPP redirects to JCenter when it can't find a requested artifact. This is
usually not what should happen. Setting Maven first means the order of
resolution is Maven Central -> GPP -> JCenter intsead of GPP -> JCenter ->
Maven Central.
  • Loading branch information
3flex committed Feb 3, 2024
1 parent 5ba7ff2 commit a391f61
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build-logic/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ rootProject.name = "build-logic"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "gradle-example"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "kotlin-as-java-example"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "library-publishing-example"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "dokka-multiplatform-example"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "versioning-multimodule-example"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "it-basic"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "it-collector-0"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "it-js-ir-0"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "it-multimodule-0"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "it-multimodule-1"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "it-multimodule-versioning-0"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ rootProject.name = "it-multiplatform-0"

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
gradlePluginPortal()
maven(providers.gradleProperty("testMavenRepo"))
}
}
Expand Down

0 comments on commit a391f61

Please sign in to comment.