From dbedff3c62d0cca5f3a514816ba86128e6dac379 Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Wed, 7 Jul 2021 10:47:29 +0300 Subject: [PATCH] Build: Move build cache configuration to settings.gradle #KTI-559 --- settings.gradle | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/settings.gradle b/settings.gradle index 13c7da1169a..c5924630dc7 100644 --- a/settings.gradle +++ b/settings.gradle @@ -66,7 +66,29 @@ gradleEnterprise { } } -BuildCacheKt.setupBuildCache(settings) +buildCache { + local { + enabled = buildProperties.localBuildCacheEnabled + if (buildProperties.localBuildCacheDirectory != null) { + directory = buildProperties.localBuildCacheDirectory + } + } + + if (buildProperties.buildCacheUrl != null) { + remote(HttpBuildCache) { + url = buildProperties.buildCacheUrl + push = buildProperties.pushToBuildCache + if (buildProperties.buildCacheUser != null && buildProperties.buildCachePassword != null) { + credentials.username = buildProperties.buildCacheUser + credentials.password = buildProperties.buildCachePassword + } + + // ADM-44444 + allowUntrustedServer = true + allowInsecureProtocol = true + } + } +} // modules include ":benchmarks",