From 0acbc6e21760976892be192e7c011d84ab5b9424 Mon Sep 17 00:00:00 2001 From: Puneet Behl Date: Thu, 7 Mar 2024 14:25:25 +0530 Subject: [PATCH] chore(build): Migrate to Develocity build cache connector To simplify cache management with the [Develocity cache connector](https://docs.gradle.com/enterprise/gradle-plugin/#using_the_develocity_connector) --- settings.gradle | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/settings.gradle b/settings.gradle index 81d961c8f..1ca0358ee 100644 --- a/settings.gradle +++ b/settings.gradle @@ -8,7 +8,7 @@ gradleEnterprise { buildScan { publishAlwaysIf(System.getenv('CI') == 'true') publishIfAuthenticated() - uploadInBackground = System.getenv('CI') == null + uploadInBackground = System.getenv("CI") == null capture { taskInputFiles = true } @@ -17,14 +17,10 @@ gradleEnterprise { buildCache { local { enabled = System.getenv('CI') != 'true' } - remote(HttpBuildCache) { - push = System.getenv('CI') == 'true' + remote(gradleEnterprise.buildCache) { + def isAuthenticated = System.getenv('GRADLE_ENTERPRISE_ACCESS_KEY') + push = System.getenv('CI') == 'true' && isAuthenticated enabled = true - url = 'https://ge.grails.org/cache/' - credentials { - username = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER') - password = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY') - } } }