Build: Make use of user & password properties in build cache configuration

This commit is contained in:
Vyacheslav Gerasimov
2019-12-18 21:07:16 +03:00
parent e43ea7e183
commit 20faa9e3e4
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ plugins {
} }
group = "org.jetbrains.kotlin" group = "org.jetbrains.kotlin"
version = "0.0.7" version = "0.0.8"
repositories { repositories {
mavenCentral() mavenCentral()
@@ -14,6 +14,10 @@ fun Settings.setupBuildCache() {
buildCache.remote(HttpBuildCache::class.java) { remoteCache -> buildCache.remote(HttpBuildCache::class.java) { remoteCache ->
remoteCache.url = URI(remoteCacheUrl) remoteCache.url = URI(remoteCacheUrl)
remoteCache.isPush = kotlinBuildProperties.pushToBuildCache remoteCache.isPush = kotlinBuildProperties.pushToBuildCache
if (kotlinBuildProperties.buildCacheUser != null && kotlinBuildProperties.buildCachePassword != null) {
remoteCache.credentials.username = kotlinBuildProperties.buildCacheUser
remoteCache.credentials.password = kotlinBuildProperties.buildCachePassword
}
} }
} }
} }