Skip to content

Commit 1cad830

Browse files
committed
Add maven proxy configuration.
Fixes #12
1 parent a0f26e0 commit 1cad830

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
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()

0 commit comments

Comments
 (0)