Skip to content

Commit

Permalink
Fix eager task creation fips plugin (elastic#78017)
Browse files Browse the repository at this point in the history
  • Loading branch information
breskeby authored Sep 21, 2021
1 parent 524d1ea commit 77dc033
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ if (BuildParams.inFipsJvm) {
// This afterEvaluate hooks is required to avoid deprecated configuration resolution
// This configuration can be removed once system modules are available
def extraFipsJars = configurations.detachedConfiguration(bcFips, bcTlsFips)
testClusters.all {
testClusters.configureEach {
extraFipsJars.files.each {
extraJarFile it
}
}
}
tasks.withType(TestClustersAware) {
tasks.withType(TestClustersAware).configureEach {
dependsOn 'fipsResources'
}
testClusters.all {
testClusters.configureEach {
setTestDistribution(TestDistribution.DEFAULT)
extraConfigFile "fips_java.security", fipsSecurity
extraConfigFile "fips_java.policy", fipsPolicy
Expand Down

0 comments on commit 77dc033

Please sign in to comment.