androidx.build.gradle.gcpbuildcache
Owner:
Aurimas Liutikas
Implementation of Gradle Build Cache that allows to use Google Cloud Platform storage buckets as a back end.
https://github.com/androidx/gcp-gradle-build-cache
Sources: https://github.com/androidx/gcp-gradle-build-cache
Version 1.0.0-alpha05
Created 20 May 2022.
- Downloads `Blob`s to an intermediate `Buffer` or a `File` depending on the size of the blob.
- The underlying `FileHandleInputStream` gets cleaned up automatically after the `InputStream` is closed.
- This way we can avoid flakes from the build cache, that is caused by intermittent `StorageException`s
- Retry on fetches given they are being fetched to an intermediate location.
Add this plugin to your build using the plugins DSL:
plugins {
id("androidx.build.gradle.gcpbuildcache") version "1.0.0-alpha05"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts)
:dependencies { implementation("androidx.build.gradle.gcpbuildcache:androidx.build.gradle.gcpbuildcache.gradle.plugin:1.0.0-alpha05") }
It can then be applied in the precompiled script plugin:plugins { id("androidx.build.gradle.gcpbuildcache") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("androidx.build.gradle.gcpbuildcache:androidx.build.gradle.gcpbuildcache.gradle.plugin:1.0.0-alpha05") } } apply(plugin = "androidx.build.gradle.gcpbuildcache")
- Applying plugins to all subprojects .