Skip to content

Commit a4357b8

Browse files
authored
Add maven proxy configuration. (#20)
* Add maven proxy configuration. Fixes #12 * Add maven proxy repo to test-apps.
1 parent c03caf7 commit a4357b8

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

buildSrc/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ plugins {
1717
}
1818

1919
repositories {
20+
if (System.getenv().containsKey("FIREBASE_CI")) {
21+
maven {
22+
url "http://maven-proxy/"
23+
}
24+
}
2025
maven {
2126
url 'https://maven.google.com/'
2227
}

root-project.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ import groovy.io.FileType
1818
buildscript {
1919

2020
repositories {
21+
if (System.getenv().containsKey("FIREBASE_CI")) {
22+
maven {
23+
url "http://maven-proxy/"
24+
}
25+
}
2126
google()
2227
jcenter()
2328
mavenCentral()
@@ -47,6 +52,11 @@ apply plugin: com.google.firebase.gradle.plugins.publish.PublishingPlugin
4752

4853
configure(subprojects) {
4954
repositories {
55+
if (System.getenv().containsKey("FIREBASE_CI")) {
56+
maven {
57+
url "http://maven-proxy/"
58+
}
59+
}
5060
google()
5161
jcenter()
5262
mavenLocal()

test-apps/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717
buildscript {
1818
repositories {
19+
if (System.getenv().containsKey("FIREBASE_CI")) {
20+
maven {
21+
url "http://maven-proxy/"
22+
}
23+
}
1924
jcenter()
2025
mavenLocal()
2126
google()
@@ -43,6 +48,11 @@ allprojects {
4348
}
4449

4550
repositories {
51+
if (System.getenv().containsKey("FIREBASE_CI")) {
52+
maven {
53+
url "http://maven-proxy/"
54+
}
55+
}
4656
//mavenLocal() can be overridden via GRADLE_OPTS="-Dmaven.repo.local=<path>"
4757
mavenLocal()
4858
jcenter()
@@ -118,4 +128,4 @@ allprojects {
118128

119129
task clean(type: Delete) {
120130
delete rootProject.buildDir
121-
}
131+
}

0 commit comments

Comments
 (0)