Skip to content

Commit c6331ab

Browse files
allisonbm92schmidt-sebastian
authored andcommitted
Generalize parent repository logic. (#548)
This commit generalizes the path to the parent repository which contains the m2repository for the smoke tests.
1 parent 8291ff2 commit c6331ab

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

smoke-tests/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@ android {
7777
}
7878
}
7979

80-
repositories {
81-
google()
82-
jcenter()
83-
84-
// This is necessary for Bill of Materials injection. This repository is created by running the
85-
// `publishAllToBuildDir` task on the main firebase-android-sdk project.
86-
maven {
87-
url "../build/m2repository/"
88-
}
89-
}
90-
9180
apply from: "configure.gradle"
9281

9382
dependencies {

smoke-tests/configure.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,23 @@ def configurePlatform() {
3030
}
3131
}
3232

33+
def configureRepositories() {
34+
def m2repo = "../build/m2repository/"
35+
if (project.hasProperty("m2repo")) {
36+
m2repo = project.getProperty("m2repo")
37+
}
38+
39+
project.repositories {
40+
// This is necessary for Bill of Materials injection. This repository is created by running the
41+
// `assembleAllForSmokeTests` task on the main firebase-android-sdk project.
42+
maven {
43+
url m2repo
44+
}
45+
46+
google()
47+
jcenter()
48+
}
49+
}
50+
51+
configureRepositories()
3352
configurePlatform()

0 commit comments

Comments
 (0)