Skip to content

Commit 066ad3c

Browse files
authored
buildscripts,travis: fetch from mvn with retries (grpc#4140)
A band aid for grpc#3284, to make its symptoms less noticeable.
1 parent c07ad68 commit 066ad3c

File tree

15 files changed

+67
-23
lines changed

15 files changed

+67
-23
lines changed

all/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ description = "gRPC: All"
44

55
buildscript {
66
repositories {
7-
mavenCentral()
7+
maven {
8+
// The google mirror is less flaky than mavenCentral()
9+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
10+
}
811
}
912
dependencies {
1013
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'

alts/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ targetCompatibility = 1.7
55

66
buildscript {
77
repositories {
8-
mavenCentral()
8+
maven {
9+
// The google mirror is less flaky than mavenCentral()
10+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
11+
}
912
}
1013
dependencies {
1114
classpath libraries.protobuf_plugin

benchmarks/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
buildscript {
22
repositories {
3-
mavenCentral()
3+
maven {
4+
// The google mirror is less flaky than mavenCentral()
5+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
6+
}
47
}
58
dependencies {
69
classpath libraries.protobuf_plugin

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
buildscript {
22
repositories {
3-
mavenCentral()
43
mavenLocal()
54
maven {
65
url "https://plugins.gradle.org/m2/"
@@ -59,11 +58,11 @@ subprojects {
5958
targetCompatibility = 1.6
6059

6160
repositories {
62-
mavenCentral()
63-
mavenLocal()
6461
maven {
65-
url "https://oss.sonatype.org/content/repositories/snapshots/"
62+
// The google mirror is less flaky than mavenCentral()
63+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
6664
}
65+
mavenLocal()
6766
}
6867

6968
[compileJava, compileTestJava, compileJmhJava].each() {

compiler/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ description = 'The protoc plugin for gRPC Java'
55

66
buildscript {
77
repositories {
8-
mavenCentral()
8+
maven {
9+
// The google mirror is less flaky than mavenCentral()
10+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
11+
}
912
mavenLocal()
1013
}
1114
dependencies {

examples/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ apply plugin: 'com.google.protobuf'
33

44
buildscript {
55
repositories {
6-
mavenCentral()
6+
maven {
7+
// The google mirror is less flaky than mavenCentral()
8+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
9+
}
710
}
811
dependencies {
912
// ASSUMES GRADLE 2.12 OR HIGHER. Use plugin version 0.7.5 with earlier
@@ -13,7 +16,10 @@ buildscript {
1316
}
1417

1518
repositories {
16-
mavenCentral()
19+
maven {
20+
// The google mirror is less flaky than mavenCentral()
21+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
22+
}
1723
mavenLocal()
1824
}
1925

gae-interop-testing/gae-jdk7/build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ description = 'gRPC: gae interop testing (jdk7)'
1616
buildscript { // Configuration for building
1717
repositories {
1818
jcenter() // Bintray's repository - a fast Maven Central mirror & more
19-
mavenCentral()
19+
maven {
20+
// The google mirror is less flaky than mavenCentral()
21+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
22+
}
2023
}
2124
dependencies {
2225
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.3.3'
@@ -27,10 +30,10 @@ buildscript { // Configuration for building
2730
repositories { // repositories for Jar's you access in your code
2831
mavenLocal()
2932
maven {
30-
url 'https://maven-central.storage.googleapis.com' // Google's mirror of Maven Central
33+
// The google mirror is less flaky than mavenCentral()
34+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
3135
}
3236
jcenter()
33-
mavenCentral()
3437
}
3538

3639
apply plugin: 'java' // standard Java tasks

gae-interop-testing/gae-jdk8/build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ description = 'gRPC: gae interop testing (jdk8)'
1616
buildscript { // Configuration for building
1717
repositories {
1818
jcenter() // Bintray's repository - a fast Maven Central mirror & more
19-
mavenCentral()
19+
maven {
20+
// The google mirror is less flaky than mavenCentral()
21+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
22+
}
2023
}
2124
dependencies {
2225
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.3.3'
@@ -27,10 +30,10 @@ buildscript { // Configuration for building
2730
repositories { // repositories for Jar's you access in your code
2831
mavenLocal()
2932
maven {
30-
url 'https://maven-central.storage.googleapis.com' // Google's mirror of Maven Central
33+
// The google mirror is less flaky than mavenCentral()
34+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
3135
}
3236
jcenter()
33-
mavenCentral()
3437
}
3538

3639
apply plugin: 'java' // standard Java tasks

grpclb/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ description = "gRPC: GRPCLB LoadBalancer plugin"
22

33
buildscript {
44
repositories {
5-
mavenCentral()
5+
maven {
6+
// The google mirror is less flaky than mavenCentral()
7+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
8+
}
69
}
710
dependencies {
811
classpath libraries.protobuf_plugin

interop-testing/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ startScripts.enabled = false
66
// Add dependency on the protobuf plugin
77
buildscript {
88
repositories {
9-
mavenCentral()
9+
maven {
10+
// The google mirror is less flaky than mavenCentral()
11+
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
12+
}
1013
}
1114
dependencies {
1215
classpath libraries.protobuf_plugin

0 commit comments

Comments
 (0)