@@ -339,24 +339,30 @@ 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
350+ .withDirectory(file(" /nfs-cache/.develocity/build-cache" ))
351+ .withEnabled(true )
352+ .withStoreEnabled(true ))
353+ .withRemote(buildCache.remote.withEnabled(true ).withStoreEnabled(isInsideCI))
351354 )
352- .withTestRetryConfiguration (
353- config.testRetryConfiguration
355+ .withTestRetry (
356+ config.testRetry
354357 .withFlakyTestPolicy(FlakyTestPolicy .Fail )
355358 .withMaxRetries(if (isInsideCI) 1 else 0 )
356359 .withMaxFailures(10 )
357360 .withClassesFilter((className, _) => ! noRetryTestClasses.contains(className))
358361 )
359- }
362+ },
363+ // Deactivate Develocity's test caching because it caches all tests or nothing.
364+ // Also at the moment, it does not take compilation files as inputs.
365+ Test / develocityBuildCacheClient := None ,
360366 )
361367
362368 // Settings shared globally (scoped in Global). Used in build.sbt
@@ -1015,10 +1021,6 @@ object Build {
10151021 sjsSources
10161022 } (Set (scalaJSIRSourcesJar)).toSeq
10171023 }.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 ,
10221024 )
10231025
10241026 def insertClasspathInArgs (args : List [String ], cp : String ): List [String ] = {
0 commit comments