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:
Gabriel Luong
2023-12-08 02:35:56 -05:00
parent 7bd816b3f6
commit bfdb3b8746
2 changed files with 24 additions and 1 deletions

View File

@@ -13,6 +13,16 @@ buildscript {
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")) {
maven {
name "Google"
@@ -59,6 +69,16 @@ allprojects {
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")) {
maven {
name "Google"

View File

@@ -65,7 +65,10 @@ dependencies {
}
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')
} else if (gradle.mozconfig.substs.MOZ_ARTIFACT_BUILDS) {
api getGeckoViewDependency()