Build: Make use of user & password properties in build cache configuration
This commit is contained in:
@@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "org.jetbrains.kotlin"
|
||||
version = "0.0.7"
|
||||
version = "0.0.8"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -14,6 +14,10 @@ fun Settings.setupBuildCache() {
|
||||
buildCache.remote(HttpBuildCache::class.java) { remoteCache ->
|
||||
remoteCache.url = URI(remoteCacheUrl)
|
||||
remoteCache.isPush = kotlinBuildProperties.pushToBuildCache
|
||||
if (kotlinBuildProperties.buildCacheUser != null && kotlinBuildProperties.buildCachePassword != null) {
|
||||
remoteCache.credentials.username = kotlinBuildProperties.buildCacheUser
|
||||
remoteCache.credentials.password = kotlinBuildProperties.buildCachePassword
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user