mirror of
https://github.com/bitfireAT/davx5-ose.git
synced 2025-12-23 23:17:50 -05:00
* [CI] Add gradle remote build cache * Update workflow * Don't cache local build cache; pre-populate configuration cache * Allow configuration caching of tasks * Free some disk space before running instrumented tests; cache whole .android (not only .android/avd) * Allow branches to update configuration cache * Use dry run to pre-populate configuration cache * Test runs: don't cache * Fix remote build cache configuration for non-CI builds * Add comment
37 lines
865 B
Kotlin
37 lines
865 B
Kotlin
pluginManagement {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
|
|
// AboutLibraries
|
|
maven("https://plugins.gradle.org/m2/")
|
|
}
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
|
|
// AppIntro, dav4jvm
|
|
maven("https://jitpack.io")
|
|
}
|
|
}
|
|
|
|
// use remote build cache, if configured
|
|
if (System.getenv("GRADLE_BUILDCACHE_URL") != null) {
|
|
buildCache {
|
|
remote<HttpBuildCache> {
|
|
url = uri(System.getenv("GRADLE_BUILDCACHE_URL"))
|
|
credentials {
|
|
username = System.getenv("GRADLE_BUILDCACHE_USERNAME")
|
|
password = System.getenv("GRADLE_BUILDCACHE_PASSWORD")
|
|
}
|
|
isPush = true // read/write
|
|
}
|
|
}
|
|
}
|
|
|
|
include(":app")
|