Skip to content

Commit

Permalink
Fix build on Fips (elastic#38546)
Browse files Browse the repository at this point in the history
testing convetions need to be disabled if the test task is for fips.
  • Loading branch information
andyb-elastic authored Feb 7, 2019
1 parent 622a7f1 commit 293ed6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugin/security/cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencyLicenses {

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

}

0 comments on commit 293ed6d

Please sign in to comment.