Issue #17819: Get leanplum artifacts from leanplum repository.

upstream-sync
Sebastian Kaspari 3 years ago
parent 611ff8f25b
commit 74ee459c11

@ -146,13 +146,6 @@ allprojects {
// https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
////////////////////////////////////////////////////////////////////////////////
// Leanplum
// The docs mention a custom repository (repo.leanplum.com) that we may be able
// to switch to.
includeVersion("com.leanplum", "leanplum-core", "5.4.0")
includeVersion("com.leanplum", "leanplum-push", "5.4.0")
includeVersion("com.leanplum", "leanplum-fcm", "5.4.0")
// Used by Android Gradle Plugin
// Issue for publishing to maven central: https://youtrack.jetbrains.com/issue/IDEA-261387
// Related plugin issue: https://issuetracker.google.com/issues/179291081
@ -174,6 +167,18 @@ allprojects {
}
}
}
maven {
name "LeanplumRepo"
if (project.hasProperty("leanplumRepo")) {
url project.property("leanplumRepo")
} else {
url "https://repo.leanplum.com"
}
content {
includeGroup("com.leanplum")
}
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {

@ -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/ -PcentralRepo=$NEXUS_PREFIX/central/"
GRADLE_ARGS="--parallel -PgoogleRepo=$NEXUS_PREFIX/google/ -PjcenterRepo=$NEXUS_PREFIX/jcenter/ -PcentralRepo=$NEXUS_PREFIX/central/ -PleanplumRepo=$NEXUS_PREFIX/leanplum/"
# 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

@ -23,6 +23,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
cp -R ${NEXUS_WORK}/storage/leanplum android-gradle-dependencies
tar cf - android-gradle-dependencies | xz > /builds/worker/artifacts/android-gradle-dependencies.tar.xz

@ -54,6 +54,37 @@
<autoBlockActive>true</autoBlockActive>
</externalConfiguration>
</repository>
<repository>
<id>leanplum</id>
<name>leanplum</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://repo.leanplum.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>gradle-plugins</id>
<name>Gradle Plugins</name>

Loading…
Cancel
Save