зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1382774 - Configure android-gradle-dependencies to use jcenter instead of central. r=sebastian
The nexus.xml included in this patch is the result of starting Nexus and manually adding the jcenter proxy repository using the Nexus web administration interface (all in a Docker container). I know of no way to do this configuration incrementally without the web interface. The diff between new and the default generated configuration is a single new <repository>..</repository> element. MozReview-Commit-ID: 2Bg5qX41pHB --HG-- extra : rebase_source : c945acabcedd98439a0ca0e26251bab1a41de197 extra : source : 9b794a7fc266da1ae81afd795f91e72d04bbc992
This commit is contained in:
Родитель
c3b258c6db
Коммит
e3e9c413f0
|
@ -16,7 +16,7 @@ NO_NDK=1
|
||||||
# We want to download Gradle.
|
# We want to download Gradle.
|
||||||
ac_add_options --with-gradle
|
ac_add_options --with-gradle
|
||||||
# We want to use (and populate!) the local Nexus repository.
|
# We want to use (and populate!) the local Nexus repository.
|
||||||
export GRADLE_MAVEN_REPOSITORY="http://localhost:8081/nexus/content/repositories/central/"
|
export GRADLE_MAVEN_REPOSITORY="http://localhost:8081/nexus/content/repositories/jcenter/"
|
||||||
|
|
||||||
# From here on, just like ../android-api-15-frontend/nightly.
|
# From here on, just like ../android-api-15-frontend/nightly.
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,8 @@ RUN tar zxf nexus-${NEXUS_VERSION}-bundle.tar.gz \
|
||||||
&& rm -rf /tmp/nexus-${NEXUS_VERSION} \
|
&& rm -rf /tmp/nexus-${NEXUS_VERSION} \
|
||||||
&& rm -rf /tmp/nexus-${NEXUS_VERSION}-bundle.tar.gz
|
&& rm -rf /tmp/nexus-${NEXUS_VERSION}-bundle.tar.gz
|
||||||
|
|
||||||
|
COPY nexus.xml /workspace/nexus/conf/nexus.xml
|
||||||
|
|
||||||
# Install tooltool directly from github.
|
# Install tooltool directly from github.
|
||||||
RUN mkdir /build
|
RUN mkdir /build
|
||||||
ADD https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py /build/tooltool.py
|
ADD https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py /build/tooltool.py
|
||||||
|
|
|
@ -13,7 +13,7 @@ pushd ${WORKSPACE}
|
||||||
# cp -R /root/.android-sdk android-sdk-linux
|
# cp -R /root/.android-sdk android-sdk-linux
|
||||||
# tar cJf android-sdk-linux.tar.xz android-sdk-linux
|
# tar cJf android-sdk-linux.tar.xz android-sdk-linux
|
||||||
|
|
||||||
cp -R /workspace/nexus/storage/central jcentral
|
cp -R /workspace/nexus/storage/jcenter jcentral
|
||||||
tar cJf jcentral.tar.xz jcentral
|
tar cJf jcentral.tar.xz jcentral
|
||||||
|
|
||||||
# The Gradle wrapper will have downloaded and verified the hash of exactly one
|
# The Gradle wrapper will have downloaded and verified the hash of exactly one
|
||||||
|
|
|
@ -0,0 +1,346 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<nexusConfiguration>
|
||||||
|
<version>2.8.0</version>
|
||||||
|
<nexusVersion>2.12.0-01</nexusVersion>
|
||||||
|
<globalConnectionSettings>
|
||||||
|
<connectionTimeout>20000</connectionTimeout>
|
||||||
|
<retrievalRetryCount>3</retrievalRetryCount>
|
||||||
|
<queryString></queryString>
|
||||||
|
</globalConnectionSettings>
|
||||||
|
<restApi>
|
||||||
|
<uiTimeout>60000</uiTimeout>
|
||||||
|
</restApi>
|
||||||
|
<httpProxy>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<port>8082</port>
|
||||||
|
<proxyPolicy>strict</proxyPolicy>
|
||||||
|
</httpProxy>
|
||||||
|
<routing>
|
||||||
|
<resolveLinks>true</resolveLinks>
|
||||||
|
</routing>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>jcenter</id>
|
||||||
|
<name>jcenter</name>
|
||||||
|
<providerRole>org.sonatype.nexus.proxy.repository.Repository</providerRole>
|
||||||
|
<providerHint>maven2</providerHint>
|
||||||
|
<localStatus>IN_SERVICE</localStatus>
|
||||||
|
<notFoundCacheActive>true</notFoundCacheActive>
|
||||||
|
<notFoundCacheTTL>1440</notFoundCacheTTL>
|
||||||
|
<userManaged>true</userManaged>
|
||||||
|
<exposed>true</exposed>
|
||||||
|
<browseable>true</browseable>
|
||||||
|
<writePolicy>READ_ONLY</writePolicy>
|
||||||
|
<indexable>true</indexable>
|
||||||
|
<searchable>true</searchable>
|
||||||
|
<localStorage>
|
||||||
|
<provider>file</provider>
|
||||||
|
</localStorage>
|
||||||
|
<remoteStorage>
|
||||||
|
<url>https://jcenter.bintray.com/</url>
|
||||||
|
</remoteStorage>
|
||||||
|
<externalConfiguration>
|
||||||
|
<repositoryPolicy>RELEASE</repositoryPolicy>
|
||||||
|
<checksumPolicy>STRICT</checksumPolicy>
|
||||||
|
<fileTypeValidation>true</fileTypeValidation>
|
||||||
|
<downloadRemoteIndex>false</downloadRemoteIndex>
|
||||||
|
<artifactMaxAge>-1</artifactMaxAge>
|
||||||
|
<metadataMaxAge>1440</metadataMaxAge>
|
||||||
|
<itemMaxAge>1440</itemMaxAge>
|
||||||
|
<autoBlockActive>true</autoBlockActive>
|
||||||
|
</externalConfiguration>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>central</id>
|
||||||
|
<name>Central</name>
|
||||||
|
<providerRole>org.sonatype.nexus.proxy.repository.Repository</providerRole>
|
||||||
|
<providerHint>maven2</providerHint>
|
||||||
|
<localStatus>IN_SERVICE</localStatus>
|
||||||
|
<notFoundCacheActive>true</notFoundCacheActive>
|
||||||
|
<notFoundCacheTTL>1440</notFoundCacheTTL>
|
||||||
|
<userManaged>true</userManaged>
|
||||||
|
<exposed>true</exposed>
|
||||||
|
<browseable>true</browseable>
|
||||||
|
<writePolicy>READ_ONLY</writePolicy>
|
||||||
|
<indexable>true</indexable>
|
||||||
|
<searchable>true</searchable>
|
||||||
|
<localStorage>
|
||||||
|
<provider>file</provider>
|
||||||
|
</localStorage>
|
||||||
|
<remoteStorage>
|
||||||
|
<url>https://repo1.maven.org/maven2/</url>
|
||||||
|
</remoteStorage>
|
||||||
|
<externalConfiguration>
|
||||||
|
<proxyMode>ALLOW</proxyMode>
|
||||||
|
<artifactMaxAge>-1</artifactMaxAge>
|
||||||
|
<itemMaxAge>1440</itemMaxAge>
|
||||||
|
<cleanseRepositoryMetadata>false</cleanseRepositoryMetadata>
|
||||||
|
<downloadRemoteIndex>false</downloadRemoteIndex>
|
||||||
|
<checksumPolicy>WARN</checksumPolicy>
|
||||||
|
<repositoryPolicy>RELEASE</repositoryPolicy>
|
||||||
|
</externalConfiguration>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>apache-snapshots</id>
|
||||||
|
<name>Apache Snapshots</name>
|
||||||
|
<providerRole>org.sonatype.nexus.proxy.repository.Repository</providerRole>
|
||||||
|
<providerHint>maven2</providerHint>
|
||||||
|
<localStatus>IN_SERVICE</localStatus>
|
||||||
|
<notFoundCacheActive>true</notFoundCacheActive>
|
||||||
|
<notFoundCacheTTL>1440</notFoundCacheTTL>
|
||||||
|
<userManaged>true</userManaged>
|
||||||
|
<exposed>true</exposed>
|
||||||
|
<browseable>true</browseable>
|
||||||
|
<writePolicy>READ_ONLY</writePolicy>
|
||||||
|
<indexable>true</indexable>
|
||||||
|
<searchable>true</searchable>
|
||||||
|
<localStorage>
|
||||||
|
<provider>file</provider>
|
||||||
|
</localStorage>
|
||||||
|
<remoteStorage>
|
||||||
|
<url>https://repository.apache.org/snapshots/</url>
|
||||||
|
</remoteStorage>
|
||||||
|
<externalConfiguration>
|
||||||
|
<proxyMode>ALLOW</proxyMode>
|
||||||
|
<artifactMaxAge>1440</artifactMaxAge>
|
||||||
|
<itemMaxAge>1440</itemMaxAge>
|
||||||
|
<cleanseRepositoryMetadata>false</cleanseRepositoryMetadata>
|
||||||
|
<downloadRemoteIndex>false</downloadRemoteIndex>
|
||||||
|
<checksumPolicy>WARN</checksumPolicy>
|
||||||
|
<repositoryPolicy>SNAPSHOT</repositoryPolicy>
|
||||||
|
</externalConfiguration>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>releases</id>
|
||||||
|
<name>Releases</name>
|
||||||
|
<providerRole>org.sonatype.nexus.proxy.repository.Repository</providerRole>
|
||||||
|
<providerHint>maven2</providerHint>
|
||||||
|
<localStatus>IN_SERVICE</localStatus>
|
||||||
|
<notFoundCacheTTL>1440</notFoundCacheTTL>
|
||||||
|
<userManaged>true</userManaged>
|
||||||
|
<exposed>true</exposed>
|
||||||
|
<browseable>true</browseable>
|
||||||
|
<writePolicy>ALLOW_WRITE_ONCE</writePolicy>
|
||||||
|
<indexable>true</indexable>
|
||||||
|
<searchable>true</searchable>
|
||||||
|
<localStorage>
|
||||||
|
<provider>file</provider>
|
||||||
|
</localStorage>
|
||||||
|
<externalConfiguration>
|
||||||
|
<proxyMode>ALLOW</proxyMode>
|
||||||
|
<artifactMaxAge>-1</artifactMaxAge>
|
||||||
|
<itemMaxAge>1440</itemMaxAge>
|
||||||
|
<cleanseRepositoryMetadata>false</cleanseRepositoryMetadata>
|
||||||
|
<downloadRemoteIndex>false</downloadRemoteIndex>
|
||||||
|
<checksumPolicy>WARN</checksumPolicy>
|
||||||
|
<repositoryPolicy>RELEASE</repositoryPolicy>
|
||||||
|
</externalConfiguration>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>snapshots</id>
|
||||||
|
<name>Snapshots</name>
|
||||||
|
<providerRole>org.sonatype.nexus.proxy.repository.Repository</providerRole>
|
||||||
|
<providerHint>maven2</providerHint>
|
||||||
|
<localStatus>IN_SERVICE</localStatus>
|
||||||
|
<notFoundCacheTTL>1440</notFoundCacheTTL>
|
||||||
|
<userManaged>true</userManaged>
|
||||||
|
<exposed>true</exposed>
|
||||||
|
<browseable>true</browseable>
|
||||||
|
<writePolicy>ALLOW_WRITE</writePolicy>
|
||||||
|
<indexable>true</indexable>
|
||||||
|
<searchable>true</searchable>
|
||||||
|
<localStorage>
|
||||||
|
<provider>file</provider>
|
||||||
|
</localStorage>
|
||||||
|
<externalConfiguration>
|
||||||
|
<proxyMode>ALLOW</proxyMode>
|
||||||
|
<artifactMaxAge>1440</artifactMaxAge>
|
||||||
|
<itemMaxAge>1440</itemMaxAge>
|
||||||
|
<cleanseRepositoryMetadata>false</cleanseRepositoryMetadata>
|
||||||
|
<downloadRemoteIndex>false</downloadRemoteIndex>
|
||||||
|
<checksumPolicy>WARN</checksumPolicy>
|
||||||
|
<repositoryPolicy>SNAPSHOT</repositoryPolicy>
|
||||||
|
</externalConfiguration>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>thirdparty</id>
|
||||||
|
<name>3rd party</name>
|
||||||
|
<providerRole>org.sonatype.nexus.proxy.repository.Repository</providerRole>
|
||||||
|
<providerHint>maven2</providerHint>
|
||||||
|
<localStatus>IN_SERVICE</localStatus>
|
||||||
|
<notFoundCacheTTL>1440</notFoundCacheTTL>
|
||||||
|
<userManaged>true</userManaged>
|
||||||
|
<exposed>true</exposed>
|
||||||
|
<browseable>true</browseable>
|
||||||
|
<writePolicy>ALLOW_WRITE_ONCE</writePolicy>
|
||||||
|
<indexable>true</indexable>
|
||||||
|
<searchable>true</searchable>
|
||||||
|
<localStorage>
|
||||||
|
<provider>file</provider>
|
||||||
|
</localStorage>
|
||||||
|
<externalConfiguration>
|
||||||
|
<proxyMode>ALLOW</proxyMode>
|
||||||
|
<artifactMaxAge>-1</artifactMaxAge>
|
||||||
|
<itemMaxAge>1440</itemMaxAge>
|
||||||
|
<cleanseRepositoryMetadata>false</cleanseRepositoryMetadata>
|
||||||
|
<downloadRemoteIndex>false</downloadRemoteIndex>
|
||||||
|
<checksumPolicy>WARN</checksumPolicy>
|
||||||
|
<repositoryPolicy>RELEASE</repositoryPolicy>
|
||||||
|
</externalConfiguration>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>central-m1</id>
|
||||||
|
<name>Central M1 shadow</name>
|
||||||
|
<providerRole>org.sonatype.nexus.proxy.repository.ShadowRepository</providerRole>
|
||||||
|
<providerHint>m2-m1-shadow</providerHint>
|
||||||
|
<localStatus>IN_SERVICE</localStatus>
|
||||||
|
<notFoundCacheTTL>15</notFoundCacheTTL>
|
||||||
|
<userManaged>true</userManaged>
|
||||||
|
<exposed>true</exposed>
|
||||||
|
<browseable>true</browseable>
|
||||||
|
<writePolicy>READ_ONLY</writePolicy>
|
||||||
|
<localStorage>
|
||||||
|
<provider>file</provider>
|
||||||
|
</localStorage>
|
||||||
|
<externalConfiguration>
|
||||||
|
<masterRepositoryId>central</masterRepositoryId>
|
||||||
|
<syncAtStartup>false</syncAtStartup>
|
||||||
|
</externalConfiguration>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>public</id>
|
||||||
|
<name>Public Repositories</name>
|
||||||
|
<providerRole>org.sonatype.nexus.proxy.repository.GroupRepository</providerRole>
|
||||||
|
<providerHint>maven2</providerHint>
|
||||||
|
<localStatus>IN_SERVICE</localStatus>
|
||||||
|
<notFoundCacheTTL>15</notFoundCacheTTL>
|
||||||
|
<userManaged>true</userManaged>
|
||||||
|
<exposed>true</exposed>
|
||||||
|
<browseable>true</browseable>
|
||||||
|
<writePolicy>READ_ONLY</writePolicy>
|
||||||
|
<indexable>true</indexable>
|
||||||
|
<localStorage>
|
||||||
|
<provider>file</provider>
|
||||||
|
</localStorage>
|
||||||
|
<externalConfiguration>
|
||||||
|
<mergeMetadata>true</mergeMetadata>
|
||||||
|
<memberRepositories>
|
||||||
|
<memberRepository>releases</memberRepository>
|
||||||
|
<memberRepository>snapshots</memberRepository>
|
||||||
|
<memberRepository>thirdparty</memberRepository>
|
||||||
|
<memberRepository>central</memberRepository>
|
||||||
|
</memberRepositories>
|
||||||
|
</externalConfiguration>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<repositoryGrouping>
|
||||||
|
<pathMappings>
|
||||||
|
<pathMapping>
|
||||||
|
<id>inhouse-stuff</id>
|
||||||
|
<groupId>*</groupId>
|
||||||
|
<routeType>inclusive</routeType>
|
||||||
|
<routePatterns>
|
||||||
|
<routePattern>^/(com|org)/somecompany/.*</routePattern>
|
||||||
|
</routePatterns>
|
||||||
|
<repositories>
|
||||||
|
<repository>snapshots</repository>
|
||||||
|
<repository>releases</repository>
|
||||||
|
</repositories>
|
||||||
|
</pathMapping>
|
||||||
|
<pathMapping>
|
||||||
|
<id>apache-stuff</id>
|
||||||
|
<groupId>*</groupId>
|
||||||
|
<routeType>exclusive</routeType>
|
||||||
|
<routePatterns>
|
||||||
|
<routePattern>^/org/some-oss/.*</routePattern>
|
||||||
|
</routePatterns>
|
||||||
|
<repositories>
|
||||||
|
<repository>releases</repository>
|
||||||
|
<repository>snapshots</repository>
|
||||||
|
</repositories>
|
||||||
|
</pathMapping>
|
||||||
|
</pathMappings>
|
||||||
|
</repositoryGrouping>
|
||||||
|
<repositoryTargets>
|
||||||
|
<repositoryTarget>
|
||||||
|
<id>1</id>
|
||||||
|
<name>All (Maven2)</name>
|
||||||
|
<contentClass>maven2</contentClass>
|
||||||
|
<patterns>
|
||||||
|
<pattern>.*</pattern>
|
||||||
|
</patterns>
|
||||||
|
</repositoryTarget>
|
||||||
|
<repositoryTarget>
|
||||||
|
<id>2</id>
|
||||||
|
<name>All (Maven1)</name>
|
||||||
|
<contentClass>maven1</contentClass>
|
||||||
|
<patterns>
|
||||||
|
<pattern>.*</pattern>
|
||||||
|
</patterns>
|
||||||
|
</repositoryTarget>
|
||||||
|
<repositoryTarget>
|
||||||
|
<id>3</id>
|
||||||
|
<name>All but sources (Maven2)</name>
|
||||||
|
<contentClass>maven2</contentClass>
|
||||||
|
<patterns>
|
||||||
|
<pattern>(?!.*-sources.*).*</pattern>
|
||||||
|
</patterns>
|
||||||
|
</repositoryTarget>
|
||||||
|
<repositoryTarget>
|
||||||
|
<id>4</id>
|
||||||
|
<name>All Metadata (Maven2)</name>
|
||||||
|
<contentClass>maven2</contentClass>
|
||||||
|
<patterns>
|
||||||
|
<pattern>.*maven-metadata\.xml.*</pattern>
|
||||||
|
</patterns>
|
||||||
|
</repositoryTarget>
|
||||||
|
<repositoryTarget>
|
||||||
|
<id>any</id>
|
||||||
|
<name>All (Any Repository)</name>
|
||||||
|
<contentClass>any</contentClass>
|
||||||
|
<patterns>
|
||||||
|
<pattern>.*</pattern>
|
||||||
|
</patterns>
|
||||||
|
</repositoryTarget>
|
||||||
|
<repositoryTarget>
|
||||||
|
<id>site</id>
|
||||||
|
<name>All (site)</name>
|
||||||
|
<contentClass>site</contentClass>
|
||||||
|
<patterns>
|
||||||
|
<pattern>.*</pattern>
|
||||||
|
</patterns>
|
||||||
|
</repositoryTarget>
|
||||||
|
<repositoryTarget>
|
||||||
|
<id>npm</id>
|
||||||
|
<name>All (npm)</name>
|
||||||
|
<contentClass>npm</contentClass>
|
||||||
|
<patterns>
|
||||||
|
<pattern>.*</pattern>
|
||||||
|
</patterns>
|
||||||
|
</repositoryTarget>
|
||||||
|
<repositoryTarget>
|
||||||
|
<id>nuget</id>
|
||||||
|
<name>All (nuget)</name>
|
||||||
|
<contentClass>nuget</contentClass>
|
||||||
|
<patterns>
|
||||||
|
<pattern>.*</pattern>
|
||||||
|
</patterns>
|
||||||
|
</repositoryTarget>
|
||||||
|
<repositoryTarget>
|
||||||
|
<id>rubygems</id>
|
||||||
|
<name>All (rubygems)</name>
|
||||||
|
<contentClass>rubygems</contentClass>
|
||||||
|
<patterns>
|
||||||
|
<pattern>.*</pattern>
|
||||||
|
</patterns>
|
||||||
|
</repositoryTarget>
|
||||||
|
</repositoryTargets>
|
||||||
|
<smtpConfiguration>
|
||||||
|
<hostname>smtp-host</hostname>
|
||||||
|
<port>25</port>
|
||||||
|
<username>smtp-username</username>
|
||||||
|
<password>{jyU2gDFaNz8HQ4ybBAIdtJ6KL+YB08GXQs7vLPnia3o=}</password>
|
||||||
|
<systemEmailAddress>system@nexus.org</systemEmailAddress>
|
||||||
|
</smtpConfiguration>
|
||||||
|
<notification />
|
||||||
|
</nexusConfiguration>
|
Загрузка…
Ссылка в новой задаче