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 + } + } + } +}