Skip to content

Commit 55c9607

Browse files
authored
Build only: Prefer Maven Local if enabled (#9861)
1 parent 7a9e30b commit 55c9607

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build-logic/settings.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ dependencyResolutionManagement {
2323
dependencyResolutionManagement {
2424
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
2525
repositories {
26-
mavenCentral()
27-
gradlePluginPortal()
2826
if (System.getProperty("withMavenLocal", "false").toBoolean()) {
2927
mavenLocal()
3028
}
29+
mavenCentral()
30+
gradlePluginPortal()
3131
if (System.getProperty("withApacheSnapshots", "false").toBoolean()) {
3232
maven {
3333
name = "Apache Snapshots"

settings.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ val baseVersion = file("version.txt").readText().trim()
2727

2828
pluginManagement {
2929
repositories {
30-
mavenCentral() // prefer Maven Central, in case Gradle's repo has issues
31-
gradlePluginPortal()
3230
if (System.getProperty("withMavenLocal").toBoolean()) {
3331
mavenLocal()
3432
}
33+
mavenCentral() // prefer Maven Central, in case Gradle's repo has issues
34+
gradlePluginPortal()
3535
}
3636
}
3737

3838
dependencyResolutionManagement {
3939
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
4040
repositories {
41-
mavenCentral()
42-
gradlePluginPortal()
4341
if (System.getProperty("withMavenLocal", "false").toBoolean()) {
4442
mavenLocal()
4543
}
44+
mavenCentral()
45+
gradlePluginPortal()
4646
if (System.getProperty("withApacheSnapshots", "false").toBoolean()) {
4747
maven {
4848
name = "Apache Snapshots"

0 commit comments

Comments
 (0)