Skip to content

Commit

Permalink
Merge pull request #48 from aSemy/patch-1
Browse files Browse the repository at this point in the history
Update GCP README
  • Loading branch information
liutikas authored Mar 20, 2024
2 parents 7a50b7a + 884818a commit 361ff6f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions gcpbuildcache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ An implementation of the Gradle Remote Cache that's backed by Google Cloud Stora
In your `settings.gradle.kts` file add the following

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

import androidx.build.gradle.gcpbuildcache.GcpBuildCache
import androidx.build.gradle.gcpbuildcache.GcpBuildCacheServiceFactory
import androidx.build.gradle.gcpbuildcache.ExportedKeyGcpCredentials

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

buildCache {
registerBuildCacheService(GcpBuildCache::class, GcpBuildCacheServiceFactory::class)
remote(GcpBuildCache::class) {
projectId = "foo"
bucketName = "bar"
Expand Down Expand Up @@ -44,7 +43,6 @@ import androidx.build.gradle.gcpbuildcache.GcpBuildCacheServiceFactory
import androidx.build.gradle.gcpbuildcache.ExportedKeyGcpCredentials
buildCache {
registerBuildCacheService(GcpBuildCache, GcpBuildCacheServiceFactory)
remote(GcpBuildCache) {
projectId = "projectName"
bucketName = "storageBucketName"
Expand Down

0 comments on commit 361ff6f

Please sign in to comment.