Build: Add localBuildCacheDirectory property to KotlinBuildProperties

This commit is contained in:
Vyacheslav Gerasimov
2020-02-24 23:48:35 +03:00
parent fc2161c2a6
commit 5aae3b5d27
7 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ plugins {
}
group = "org.jetbrains.kotlin"
version = "0.0.8"
version = "0.0.12"
repositories {
mavenCentral()
@@ -10,6 +10,7 @@ import java.net.URI
fun Settings.setupBuildCache() {
buildCache.local.isEnabled = kotlinBuildProperties.localBuildCacheEnabled
kotlinBuildProperties.localBuildCacheDirectory?.let { buildCache.local.directory = it }
kotlinBuildProperties.buildCacheUrl?.let { remoteCacheUrl ->
buildCache.remote(HttpBuildCache::class.java) { remoteCache ->
remoteCache.url = URI(remoteCacheUrl)
@@ -89,6 +89,8 @@ class KotlinBuildProperties(
val localBuildCacheEnabled: Boolean = getBoolean("kotlin.build.cache.local.enabled", !isTeamcityBuild)
val localBuildCacheDirectory: String? = get("kotlin.build.cache.local.directory") as String?
val buildScanServer: String? = get("kotlin.build.scan.url") as String?
val buildCacheUser: String? = get("kotlin.build.cache.user") as String?