Skip to content

Commit ae94dba

Browse files
committed
Address comments.
1 parent c5f70bd commit ae94dba

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

buildSrc/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ plugins {
5252

5353
// Define the set of repositories required to fetch and enable plugins.
5454
repositories {
55-
if (isMavenAccessible) {
56-
maven { url = uri("https://plugins.gradle.org/m2/") }
57-
} else {
55+
if (!isMavenAccessible) {
5856
maven { url = uri(mavenCentralMirrorUrl) }
59-
maven { url = uri("https://plugins.gradle.org/m2/") }
6057
}
58+
maven { url = uri("https://plugins.gradle.org/m2/") }
6159
maven {
6260
url = uri("https://repo.spring.io/plugins-release/")
6361
content { includeGroup("io.spring.gradle") }

buildSrc/src/main/groovy/org/apache/beam/gradle/Repositories.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ class Repositories {
104104
mavenLocal()
105105
if (checkMavenCentral()) {
106106
mavenCentral()
107-
maven { url "https://plugins.gradle.org/m2/" }
108107
} else {
109108
maven { url "https://maven-central.storage-download.googleapis.com/maven2/" }
110109
}
110+
maven { url "https://plugins.gradle.org/m2/" }
111111
maven { url "https://repo.spring.io/plugins-release" }
112112
maven { url "https://packages.confluent.io/maven/" }
113113
maven { url project.offlineRepositoryRoot }

settings.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ pluginManagement {
3838
}
3939

4040
repositories {
41-
if (isMavenAccessible) {
42-
gradlePluginPortal()
43-
} else {
41+
if (!isMavenAccessible) {
4442
maven { url = uri(mavenCentralMirrorUrl) }
45-
gradlePluginPortal()
4643
}
44+
gradlePluginPortal()
4745
}
4846
plugins {
4947
id("org.javacc.javacc") version "4.0.3" // enable the JavaCC parser generator

0 commit comments

Comments
 (0)