Build: Move build cache configuration to settings.gradle

#KTI-559
This commit is contained in:
Vyacheslav Gerasimov
2021-07-07 10:47:29 +03:00
parent 997bde056f
commit dbedff3c62
+23 -1
View File
@@ -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",