Search Gradle plugins

androidx.build.gradle.gcpbuildcache

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.

Using the plugins DSL:

plugins {
  id("androidx.build.gradle.gcpbuildcache") version "1.0.0-alpha05"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("androidx.build.gradle.gcpbuildcache:gcpbuildcache:1.0.0-alpha05")
  }
}

apply(plugin = "androidx.build.gradle.gcpbuildcache")

Using the plugins DSL:

plugins {
  id "androidx.build.gradle.gcpbuildcache" version "1.0.0-alpha05"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "androidx.build.gradle.gcpbuildcache:gcpbuildcache:1.0.0-alpha05"
  }
}

apply plugin: "androidx.build.gradle.gcpbuildcache"

Learn how to apply plugins to subprojects