[Build] Fix configuration cache issues (part 1)

* Make `clean` task compatible with configuration cache
* Make Java compile instrumentation compatible with configuration cache
* Make settings.gradle compatible with configuration cache
* Initial work on making IntelliJInstrumentCodeTask compatible with configuration cache
* Make writeStdlibVersion task compatible with configuration cache
* Copy some properties to not capture it's owning object into lambda to support configuration cache

Relates to #KT-44611
This commit is contained in:
Alexander Likhachev
2021-01-29 05:44:51 +03:00
parent 111e67dc8d
commit 27956adf3f
11 changed files with 120 additions and 88 deletions
+6 -3
View File
@@ -39,9 +39,12 @@ def buildProperties = BuildPropertiesKt.getKotlinBuildPropertiesForSettings(sett
def projectVersions = file("./gradle/versions.properties").text
gradleEnterprise {
def buildScanServer = buildProperties.buildScanServer
def isTeamCity = buildProperties.isTeamcityBuild
buildScan {
if (buildProperties.buildScanServer != null) {
server = buildProperties.buildScanServer
if (buildScanServer != null) {
server = buildScanServer
captureTaskInputFiles = true
publishAlways()
} else {
@@ -52,7 +55,7 @@ gradleEnterprise {
obfuscation {
ipAddresses { addresses -> ["0.0.0.0"] }
hostname { host -> "concealed" }
username { name -> buildProperties.isTeamcityBuild ? "TeamCity" : "concealed" }
username { name -> isTeamCity ? "TeamCity" : "concealed" }
}
}
}