From 8ab6570b7c2c7b707a99247492a28b5e540efb0d Mon Sep 17 00:00:00 2001 From: Malena Ebert Date: Mon, 4 Jan 2021 12:03:30 +0100 Subject: [PATCH] Use build-in Cirrus CI HTTP cache for gradle build cache. --- settings.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.gradle b/settings.gradle index 91c5df3c436..89e53c7828f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -50,14 +50,14 @@ include 'sonar-testing-ldap' include 'sonar-ws' include 'sonar-ws-generator' +ext.isCiServer = System.getenv().containsKey("CIRRUS_CI") + // use Settings.getRootDir() so that it doesn't matter which directory you are executing from File extraSettings = new File(rootDir, 'private/settings.gradle') if (extraSettings.exists()) { apply from: extraSettings } -ext.isCiServer = System.getenv().containsKey("CIRRUS_CI") - buildCache { local { enabled = !isCiServer -- 2.39.5