Fix build on Fips

testing convetions need to be disabled if the test task is for fips.
This commit is contained in:
Alpar Torok 2019-01-09 19:27:01 +02:00
parent d68d6aa00c
commit 6a5f3f05f4
1 changed files with 2 additions and 0 deletions

View File

@ -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
}