Skip to content

Commit

Permalink
Update GCP README
Browse files Browse the repository at this point in the history
- move imports to top of file
- remove unnecessary registerBuildCacheService, it's added by the GCP Settings plugin
  • Loading branch information
aSemy authored Mar 16, 2024
1 parent 6ff6573 commit 884818a
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 884818a

Please sign in to comment.