Bug 1822393 - Consume GeckoView directly in Android Components for CI builds. r=owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201485
This commit is contained in:
@@ -13,6 +13,16 @@ buildscript {
|
|||||||
mavenLocal()
|
mavenLocal()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository ->
|
||||||
|
rootProject.logger.lifecycle("Adding GRADLE_MAVEN_REPOSITORIES ${repository}")
|
||||||
|
maven {
|
||||||
|
url repository
|
||||||
|
if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) {
|
||||||
|
allowInsecureProtocol = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (project.hasProperty("googleRepo")) {
|
if (project.hasProperty("googleRepo")) {
|
||||||
maven {
|
maven {
|
||||||
name "Google"
|
name "Google"
|
||||||
@@ -59,6 +69,16 @@ allprojects {
|
|||||||
mavenLocal()
|
mavenLocal()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository ->
|
||||||
|
rootProject.logger.lifecycle("Adding GRADLE_MAVEN_REPOSITORIES ${repository}")
|
||||||
|
maven {
|
||||||
|
url repository
|
||||||
|
if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) {
|
||||||
|
allowInsecureProtocol = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (project.hasProperty("googleRepo")) {
|
if (project.hasProperty("googleRepo")) {
|
||||||
maven {
|
maven {
|
||||||
name "Google"
|
name "Google"
|
||||||
|
|||||||
@@ -65,7 +65,10 @@ dependencies {
|
|||||||
}
|
}
|
||||||
implementation ComponentsDependencies.kotlin_coroutines
|
implementation ComponentsDependencies.kotlin_coroutines
|
||||||
|
|
||||||
if (findProject(":geckoview") != null) {
|
if (System.env.MOZ_AUTOMATION) {
|
||||||
|
rootProject.logger.lifecycle("Getting geckoview in MOZ_AUTOMATION getArtifactId=${getArtifactId()} mozconfig=${gradle.mozconfig}")
|
||||||
|
api "org.mozilla.geckoview:${getArtifactId()}:+"
|
||||||
|
} else if (findProject(":geckoview") != null) {
|
||||||
api project(':geckoview')
|
api project(':geckoview')
|
||||||
} else if (gradle.mozconfig.substs.MOZ_ARTIFACT_BUILDS) {
|
} else if (gradle.mozconfig.substs.MOZ_ARTIFACT_BUILDS) {
|
||||||
api getGeckoViewDependency()
|
api getGeckoViewDependency()
|
||||||
|
|||||||
Reference in New Issue
Block a user