File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -77,17 +77,6 @@ android {
77
77
}
78
78
}
79
79
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
-
91
80
apply from : " configure.gradle"
92
81
93
82
dependencies {
Original file line number Diff line number Diff line change @@ -30,4 +30,23 @@ def configurePlatform() {
30
30
}
31
31
}
32
32
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()
33
52
configurePlatform()
You can’t perform that action at this time.
0 commit comments