Build: Move build cache configuration to settings.gradle
#KTI-559
This commit is contained in:
+23
-1
@@ -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
|
// modules
|
||||||
include ":benchmarks",
|
include ":benchmarks",
|
||||||
|
|||||||
Reference in New Issue
Block a user