From febfef35f5cfb0a5cf1d440f6f225f963db40939 Mon Sep 17 00:00:00 2001 From: Up Date: Sat, 21 Dec 2024 16:03:14 +0100 Subject: [PATCH] add foojay and build cache --- settings.gradle | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/settings.gradle b/settings.gradle index 53f3127..b40544f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,3 +11,24 @@ pluginManagement { gradlePluginPortal() } } + +plugins { + id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0' +} + +rootProject.name = 'Sparkweave' + +def ENV = System.getenv() + +buildCache { + remote(HttpBuildCache) { + url = "https://ci-cache.uuid.gg/cache" + if (ENV.CI && ENV.GRADLE_BUILD_CACHE_USER && ENV.GRADLE_BUILD_CACHE_TOKEN) { + push = true + credentials { + username = ENV.GRADLE_BUILD_CACHE_USER + password = ENV.GRADLE_BUILD_CACHE_TOKEN + } + } + } +}