@@ -339,24 +339,27 @@ object Build {
339
339
buildScan
340
340
.withPublishing(Publishing .onlyIf(_.authenticated))
341
341
.withBackgroundUpload(! isInsideCI)
342
- .tag (if (isInsideCI) " CI" else " Local" )
342
+ .withTag (if (isInsideCI) " CI" else " Local" )
343
343
.withLinks(buildScan.links ++ GithubEnv .develocityLinks)
344
344
.withValues(buildScan.values ++ GithubEnv .develocityValues)
345
345
.withObfuscation(buildScan.obfuscation.withIpAddresses(_.map(_ => " 0.0.0.0" )))
346
346
)
347
347
.withBuildCache(
348
348
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 ))
351
351
)
352
- .withTestRetryConfiguration (
353
- config.testRetryConfiguration
352
+ .withTestRetry (
353
+ config.testRetry
354
354
.withFlakyTestPolicy(FlakyTestPolicy .Fail )
355
355
.withMaxRetries(if (isInsideCI) 1 else 0 )
356
356
.withMaxFailures(10 )
357
357
.withClassesFilter((className, _) => ! noRetryTestClasses.contains(className))
358
358
)
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 ,
360
363
)
361
364
362
365
// Settings shared globally (scoped in Global). Used in build.sbt
@@ -1015,10 +1018,6 @@ object Build {
1015
1018
sjsSources
1016
1019
} (Set (scalaJSIRSourcesJar)).toSeq
1017
1020
}.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 ,
1022
1021
)
1023
1022
1024
1023
def insertClasspathInArgs (args : List [String ], cp : String ): List [String ] = {
0 commit comments