From 6a5f3f05f405095ef97c6e40eca4cbebcc4bb82f Mon Sep 17 00:00:00 2001 From: Alpar Torok Date: Wed, 9 Jan 2019 19:27:01 +0200 Subject: [PATCH] Fix build on Fips testing convetions need to be disabled if the test task is for fips. --- x-pack/plugin/security/cli/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugin/security/cli/build.gradle b/x-pack/plugin/security/cli/build.gradle index 8515b538bd5..1c684809a32 100644 --- a/x-pack/plugin/security/cli/build.gradle +++ b/x-pack/plugin/security/cli/build.gradle @@ -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) { @@ -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 + }