diff --git a/mobile/android/config/mozconfigs/android-api-15-gradle-dependencies/nightly b/mobile/android/config/mozconfigs/android-api-15-gradle-dependencies/nightly index 2f9424bee719..c22cfc1d93f4 100644 --- a/mobile/android/config/mozconfigs/android-api-15-gradle-dependencies/nightly +++ b/mobile/android/config/mozconfigs/android-api-15-gradle-dependencies/nightly @@ -16,7 +16,7 @@ NO_NDK=1 # We want to download Gradle. ac_add_options --with-gradle # 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. diff --git a/taskcluster/docker/android-gradle-build/Dockerfile b/taskcluster/docker/android-gradle-build/Dockerfile index 7b20edd8454e..9d1cfc7dfa6f 100644 --- a/taskcluster/docker/android-gradle-build/Dockerfile +++ b/taskcluster/docker/android-gradle-build/Dockerfile @@ -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}-bundle.tar.gz +COPY nexus.xml /workspace/nexus/conf/nexus.xml + # Install tooltool directly from github. RUN mkdir /build ADD https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py /build/tooltool.py diff --git a/taskcluster/docker/android-gradle-build/bin/after.sh b/taskcluster/docker/android-gradle-build/bin/after.sh index 5fbbfa7017ee..ddfbebdb1d90 100644 --- a/taskcluster/docker/android-gradle-build/bin/after.sh +++ b/taskcluster/docker/android-gradle-build/bin/after.sh @@ -13,7 +13,7 @@ pushd ${WORKSPACE} # cp -R /root/.android-sdk 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 # The Gradle wrapper will have downloaded and verified the hash of exactly one diff --git a/taskcluster/docker/android-gradle-build/nexus.xml b/taskcluster/docker/android-gradle-build/nexus.xml new file mode 100644 index 000000000000..e6f41cc7711b --- /dev/null +++ b/taskcluster/docker/android-gradle-build/nexus.xml @@ -0,0 +1,346 @@ + + + 2.8.0 + 2.12.0-01 + + 20000 + 3 + + + + 60000 + + + true + 8082 + strict + + + true + + + + jcenter + jcenter + org.sonatype.nexus.proxy.repository.Repository + maven2 + IN_SERVICE + true + 1440 + true + true + true + READ_ONLY + true + true + + file + + + https://jcenter.bintray.com/ + + + RELEASE + STRICT + true + false + -1 + 1440 + 1440 + true + + + + central + Central + org.sonatype.nexus.proxy.repository.Repository + maven2 + IN_SERVICE + true + 1440 + true + true + true + READ_ONLY + true + true + + file + + + https://repo1.maven.org/maven2/ + + + ALLOW + -1 + 1440 + false + false + WARN + RELEASE + + + + apache-snapshots + Apache Snapshots + org.sonatype.nexus.proxy.repository.Repository + maven2 + IN_SERVICE + true + 1440 + true + true + true + READ_ONLY + true + true + + file + + + https://repository.apache.org/snapshots/ + + + ALLOW + 1440 + 1440 + false + false + WARN + SNAPSHOT + + + + releases + Releases + org.sonatype.nexus.proxy.repository.Repository + maven2 + IN_SERVICE + 1440 + true + true + true + ALLOW_WRITE_ONCE + true + true + + file + + + ALLOW + -1 + 1440 + false + false + WARN + RELEASE + + + + snapshots + Snapshots + org.sonatype.nexus.proxy.repository.Repository + maven2 + IN_SERVICE + 1440 + true + true + true + ALLOW_WRITE + true + true + + file + + + ALLOW + 1440 + 1440 + false + false + WARN + SNAPSHOT + + + + thirdparty + 3rd party + org.sonatype.nexus.proxy.repository.Repository + maven2 + IN_SERVICE + 1440 + true + true + true + ALLOW_WRITE_ONCE + true + true + + file + + + ALLOW + -1 + 1440 + false + false + WARN + RELEASE + + + + central-m1 + Central M1 shadow + org.sonatype.nexus.proxy.repository.ShadowRepository + m2-m1-shadow + IN_SERVICE + 15 + true + true + true + READ_ONLY + + file + + + central + false + + + + public + Public Repositories + org.sonatype.nexus.proxy.repository.GroupRepository + maven2 + IN_SERVICE + 15 + true + true + true + READ_ONLY + true + + file + + + true + + releases + snapshots + thirdparty + central + + + + + + + + inhouse-stuff + * + inclusive + + ^/(com|org)/somecompany/.* + + + snapshots + releases + + + + apache-stuff + * + exclusive + + ^/org/some-oss/.* + + + releases + snapshots + + + + + + + 1 + All (Maven2) + maven2 + + .* + + + + 2 + All (Maven1) + maven1 + + .* + + + + 3 + All but sources (Maven2) + maven2 + + (?!.*-sources.*).* + + + + 4 + All Metadata (Maven2) + maven2 + + .*maven-metadata\.xml.* + + + + any + All (Any Repository) + any + + .* + + + + site + All (site) + site + + .* + + + + npm + All (npm) + npm + + .* + + + + nuget + All (nuget) + nuget + + .* + + + + rubygems + All (rubygems) + rubygems + + .* + + + + + smtp-host + 25 + smtp-username + {jyU2gDFaNz8HQ4ybBAIdtJ6KL+YB08GXQs7vLPnia3o=} + system@nexus.org + + +