<commit_before># GCP backed Gradle Remote Cache

An implementation of the Gradle Remote Cache that's backed by Google Cloud Storage buckets.

## Using the plugin

In your `settings.gradle.kts` file add the following

```kotlin
plugins {
    id("androidx.build.gradle.gcpbuildcache") version "1.0.0-alpha01"
}

buildCache {
  remote(androidx.build.gradle.gcpbuildcache.GcpBuildCache::class) {
    projectId = "foo"
    bucketName = "bar"
    isPush = true
    isEnabled = true
  }
}
```

`projectId` and `bucketName` are required. `isPush` and `isEnabled` defaults to
`true`.

Then also set `ANDROIDX_GRADLE_SERVICE_ACCOUNT_PATH` environment variable that
points to a file containing service account credentials in a json format.

## Development

Set up the following environment variables for service account credentials.

```bash
# Gradle Cache Service Account Path
export ANDROIDX_GRADLE_SERVICE_ACCOUNT_PATH=$HOME/.gradle-cache/androidx-dev-prod-build-cache-writer.json
```<commit_msg>Fix up default values for isPush<commit_after># GCP backed Gradle Remote Cache

An implementation of the Gradle Remote Cache that's backed by Google Cloud Storage buckets.

## Using the plugin

In your `settings.gradle.kts` file add the following

```kotlin
plugins {
    id("androidx.build.gradle.gcpbuildcache") version "1.0.0-alpha01"
}

buildCache {
  remote(androidx.build.gradle.gcpbuildcache.GcpBuildCache::class) {
    projectId = "foo"
    bucketName = "bar"
    isPush = true
    isEnabled = true
  }
}
```

`projectId` and `bucketName` are required. `isEnabled` defaults to`true` and
`isPush` default to `false`.

Then also set `ANDROIDX_GRADLE_SERVICE_ACCOUNT_PATH` environment variable that
points to a file containing service account credentials in a json format.

## Development

Set up the following environment variables for service account credentials.

```bash
# Gradle Cache Service Account Path
export ANDROIDX_GRADLE_SERVICE_ACCOUNT_PATH=$HOME/.gradle-cache/androidx-dev-prod-build-cache-writer.json
```
{'fraction_non_alphanumeric': 0.08941877794336811, 'fraction_numerical': 0.004967709885742673, 'mean_word_length': 4.820809248554913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '998132', 'n_tokens_mistral': 628, 'n_tokens_neox': 605, 'n_words': 195}