@@ -273,19 +273,25 @@ object Build {
273
273
// Configuration to publish build scans to develocity.scala-lang.org
274
274
develocityConfiguration := {
275
275
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
279
280
.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" ))))
281
282
.withBuildScan(
282
- previousBuildScan
283
+ buildScan
283
284
.withPublishing(Publishing .onlyIf(_.authenticated))
284
285
.withBackgroundUpload(! isInsideCI)
285
286
.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 ))
289
295
)
290
296
}
291
297
)
@@ -910,7 +916,7 @@ object Build {
910
916
}.taskValue,
911
917
912
918
// 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 .
914
920
Test / develocityBuildCacheClient := None ,
915
921
)
916
922
0 commit comments