@@ -339,24 +339,27 @@ object Build {
339339 buildScan
340340 .withPublishing(Publishing .onlyIf(_.authenticated))
341341 .withBackgroundUpload(! isInsideCI)
342- .tag (if (isInsideCI) " CI" else " Local" )
342+ .withTag (if (isInsideCI) " CI" else " Local" )
343343 .withLinks(buildScan.links ++ GithubEnv .develocityLinks)
344344 .withValues(buildScan.values ++ GithubEnv .develocityValues)
345345 .withObfuscation(buildScan.obfuscation.withIpAddresses(_.map(_ => " 0.0.0.0" )))
346346 )
347347 .withBuildCache(
348348 buildCache
349- .withLocal(buildCache.local.withEnabled(false ))
350- .withRemote(buildCache.remote.withEnabled(false ))
349+ .withLocal(buildCache.local.withEnabled(true ).withStoreEnabled( true ))
350+ .withRemote(buildCache.remote.withEnabled(true ).withStoreEnabled(isInsideCI ))
351351 )
352- .withTestRetryConfiguration (
353- config.testRetryConfiguration
352+ .withTestRetry (
353+ config.testRetry
354354 .withFlakyTestPolicy(FlakyTestPolicy .Fail )
355355 .withMaxRetries(if (isInsideCI) 1 else 0 )
356356 .withMaxFailures(10 )
357357 .withClassesFilter((className, _) => ! noRetryTestClasses.contains(className))
358358 )
359- }
359+ },
360+ // Deactivate Develocity's test caching because it caches all tests or nothing.
361+ // Also at the moment, it does not take compilation files as inputs.
362+ Test / develocityBuildCacheClient := None ,
360363 )
361364
362365 // Settings shared globally (scoped in Global). Used in build.sbt
@@ -1015,10 +1018,6 @@ object Build {
10151018 sjsSources
10161019 } (Set (scalaJSIRSourcesJar)).toSeq
10171020 }.taskValue,
1018-
1019- // Develocity's Build Cache does not work with our compilation tests
1020- // at the moment: it does not take compilation files as inputs.
1021- Test / develocityBuildCacheClient := None ,
10221021 )
10231022
10241023 def insertClasspathInArgs (args : List [String ], cp : String ): List [String ] = {
0 commit comments