Build: Extract build cache setup to kotlin-build-gradle-plugin
This commit is contained in:
+2
-16
@@ -31,7 +31,7 @@ buildscript {
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.4")
|
||||
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.5")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,21 +48,7 @@ gradleEnterprise {
|
||||
|
||||
def buildProperties = BuildPropertiesKt.getKotlinBuildPropertiesForSettings(settings)
|
||||
|
||||
logger.info("buildCacheUrl=${buildProperties.buildCacheUrl}")
|
||||
logger.info("pushToBuildCache=${buildProperties.pushToBuildCache}")
|
||||
|
||||
buildCache {
|
||||
local {
|
||||
enabled = buildProperties.localBuildCacheEnabled
|
||||
}
|
||||
|
||||
if (buildProperties.buildCacheUrl != null) {
|
||||
remote(HttpBuildCache) {
|
||||
url = buildProperties.buildCacheUrl
|
||||
push = buildProperties.pushToBuildCache
|
||||
}
|
||||
}
|
||||
}
|
||||
BuildCacheKt.setupBuildCache(settings)
|
||||
|
||||
// modules
|
||||
include ":kotlin-build-common",
|
||||
|
||||
Reference in New Issue
Block a user