Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
fenix
Commits
88685048
Commit
88685048
authored
Feb 09, 2021
by
Sebastian Kaspari
Browse files
Issue #17819: Add Maven Central repository.
parent
88facc46
Changes
3
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
88685048
...
...
@@ -13,6 +13,7 @@ buildscript {
includeGroupByRegex
RepoMatching
.
mozilla
}
}
maven
{
name
"Mozilla"
url
"https://maven.mozilla.org/maven2"
...
...
@@ -21,6 +22,7 @@ buildscript {
includeGroupByRegex
RepoMatching
.
mozilla
}
}
if
(
project
.
hasProperty
(
"googleRepo"
))
{
maven
{
name
"Google"
...
...
@@ -38,6 +40,24 @@ buildscript {
}
}
if
(
project
.
hasProperty
(
"centralRepo"
))
{
maven
{
name
"MavenCentral"
url
project
.
property
(
"centralRepo"
)
}
}
else
{
mavenCentral
()
{
content
{
// Improve security: don't search deps with known repos.
excludeGroupByRegex
RepoMatching
.
mozilla
excludeGroupByRegex
RepoMatching
.
androidx
excludeGroupByRegex
RepoMatching
.
comGoogleAndroid
excludeGroupByRegex
RepoMatching
.
comGoogleFirebase
excludeGroupByRegex
RepoMatching
.
comAndroid
}
}
}
if
(
project
.
hasProperty
(
"jcenterRepo"
))
{
maven
{
name
"BintrayJCenter"
...
...
@@ -86,6 +106,7 @@ allprojects {
includeGroupByRegex
RepoMatching
.
mozilla
}
}
maven
{
name
"Mozilla"
url
"https://maven.mozilla.org/maven2"
...
...
@@ -94,6 +115,7 @@ allprojects {
includeGroupByRegex
RepoMatching
.
mozilla
}
}
if
(
project
.
hasProperty
(
"googleRepo"
))
{
maven
{
name
"Google"
...
...
@@ -110,6 +132,25 @@ allprojects {
}
}
}
if
(
project
.
hasProperty
(
"centralRepo"
))
{
maven
{
name
"MavenCentral"
url
project
.
property
(
"centralRepo"
)
}
}
else
{
mavenCentral
()
{
content
{
// Improve security: don't search deps with known repos.
excludeGroupByRegex
RepoMatching
.
mozilla
excludeGroupByRegex
RepoMatching
.
androidx
excludeGroupByRegex
RepoMatching
.
comGoogleAndroid
excludeGroupByRegex
RepoMatching
.
comGoogleFirebase
excludeGroupByRegex
RepoMatching
.
comAndroid
}
}
}
if
(
project
.
hasProperty
(
"jcenterRepo"
))
{
maven
{
name
"BintrayJCenter"
...
...
taskcluster/scripts/toolchain/android-gradle-dependencies.sh
View file @
88685048
...
...
@@ -19,7 +19,7 @@ pushd $PROJECT_DIR
.
taskcluster/scripts/toolchain/android-gradle-dependencies/before.sh
NEXUS_PREFIX
=
'http://localhost:8081/nexus/content/repositories'
GRADLE_ARGS
=
"--parallel -PgoogleRepo=
$NEXUS_PREFIX
/google/ -PjcenterRepo=
$NEXUS_PREFIX
/jcenter/"
GRADLE_ARGS
=
"--parallel -PgoogleRepo=
$NEXUS_PREFIX
/google/ -PjcenterRepo=
$NEXUS_PREFIX
/jcenter/
-PcentralRepo=
$NEXUS_PREFIX
/central/
"
# We build everything to be sure to fetch all dependencies
./gradlew
$GRADLE_ARGS
assemble assembleAndroidTest testClasses ktlint detekt
# Some tests may be flaky, although they still download dependencies. So we let the following
...
...
taskcluster/scripts/toolchain/android-gradle-dependencies/after.sh
View file @
88685048
...
...
@@ -22,6 +22,7 @@ mkdir -p android-gradle-dependencies /builds/worker/artifacts
cp
-R
${
NEXUS_WORK
}
/storage/jcenter android-gradle-dependencies
cp
-R
${
NEXUS_WORK
}
/storage/google android-gradle-dependencies
cp
-R
${
NEXUS_WORK
}
/storage/central android-gradle-dependencies
tar
cf - android-gradle-dependencies | xz
>
/builds/worker/artifacts/android-gradle-dependencies.tar.xz
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment