From 884818a6346f809ce6780dc13a3e5067bc1cc414 Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Sat, 16 Mar 2024 10:01:18 +0100 Subject: [PATCH] Update GCP README - move imports to top of file - remove unnecessary registerBuildCacheService, it's added by the GCP Settings plugin --- gcpbuildcache/README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gcpbuildcache/README.md b/gcpbuildcache/README.md index 10f7eb1..259c6b4 100644 --- a/gcpbuildcache/README.md +++ b/gcpbuildcache/README.md @@ -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" @@ -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"