Skip to content

Commit 293ed6d

Browse files
Fix build on Fips (#38546)
testing convetions need to be disabled if the test task is for fips.
1 parent 622a7f1 commit 293ed6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x-pack/plugin/security/cli/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencyLicenses {
2424

2525
if (project.inFipsJvm) {
2626
unitTest.enabled = false
27+
testingConventions.enabled = false
2728
// Forbiden APIs non-portable checks fail because bouncy castle classes being used from the FIPS JDK since those are
2829
// not part of the Java specification - all of this is as designed, so we have to relax this check for FIPS.
2930
tasks.withType(CheckForbiddenApis) {
@@ -32,4 +33,5 @@ if (project.inFipsJvm) {
3233
// FIPS JVM includes many classes from bouncycastle which count as jar hell for the third party audit,
3334
// rather than provide a long list of exclusions, disable the check on FIPS.
3435
thirdPartyAudit.enabled = false
36+
3537
}

0 commit comments

Comments
 (0)