[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:
+6
-3
@@ -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" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user