From e4df8dce1d02500c35f4649ec7c7396f42137a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB=20Gidiere?= Date: Tue, 5 Dec 2023 19:52:12 -0700 Subject: [PATCH] proper gradle cache --- settings.gradle.kts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/settings.gradle.kts b/settings.gradle.kts index 5791769858..c5bed6f737 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -39,3 +39,12 @@ pluginManagement { } } } + +// settings.gradle.kts +val isCiServer = System.getenv().containsKey("CI") +// Cache build artifacts, so expensive operations do not need to be re-computed +buildCache { + local { + isEnabled = !isCiServer + } +} \ No newline at end of file