Build: Add localBuildCacheDirectory property to KotlinBuildProperties
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user