Files
davx5-ose/settings.gradle.kts
Ricki Hirner 0cb27f0c2f [CI] Add gradle remote build cache (bitfireAT/davx5#752)
* [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
2025-12-17 18:06:17 +01:00

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")