Skip to content

Commit df43fa4

Browse files
committed
Disable build cache (remote and local)
1 parent 3d08aa1 commit df43fa4

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

project/Build.scala

+15-9
Original file line numberDiff line numberDiff line change
@@ -273,19 +273,25 @@ object Build {
273273
// Configuration to publish build scans to develocity.scala-lang.org
274274
develocityConfiguration := {
275275
val isInsideCI = insideCI.value
276-
val previousConfig = develocityConfiguration.value
277-
val previousBuildScan = previousConfig.buildScan
278-
previousConfig
276+
val config = develocityConfiguration.value
277+
val buildScan = config.buildScan
278+
val buildCache = config.buildCache
279+
config
279280
.withProjectId(ProjectId("scala3"))
280-
.withServer(previousConfig.server.withUrl(Some(url("https://develocity.scala-lang.org"))))
281+
.withServer(config.server.withUrl(Some(url("https://develocity.scala-lang.org"))))
281282
.withBuildScan(
282-
previousBuildScan
283+
buildScan
283284
.withPublishing(Publishing.onlyIf(_.authenticated))
284285
.withBackgroundUpload(!isInsideCI)
285286
.tag(if (isInsideCI) "CI" else "Local")
286-
.withLinks(previousBuildScan.links ++ GithubEnv.develocityLinks)
287-
.withValues(previousBuildScan.values ++ GithubEnv.develocityValues)
288-
.withObfuscation(previousBuildScan.obfuscation.withIpAddresses(_.map(_ => "0.0.0.0")))
287+
.withLinks(buildScan.links ++ GithubEnv.develocityLinks)
288+
.withValues(buildScan.values ++ GithubEnv.develocityValues)
289+
.withObfuscation(buildScan.obfuscation.withIpAddresses(_.map(_ => "0.0.0.0")))
290+
)
291+
.withBuildCache(
292+
buildCache
293+
.withLocal(buildCache.local.withEnabled(false))
294+
.withRemote(buildCache.remote.withEnabled(false))
289295
)
290296
}
291297
)
@@ -910,7 +916,7 @@ object Build {
910916
}.taskValue,
911917

912918
// Develocity's Build Cache does not work with our compilation tests
913-
// at the moment.
919+
// at the moment: it does not take compilation files as inputs.
914920
Test / develocityBuildCacheClient := None,
915921
)
916922

0 commit comments

Comments
 (0)