Skip to content

Commit c5fe949

Browse files
committed
[maintenance] Fix bc-fips jar hell by marking dependency as compileOnly
Signed-off-by: Jialiang Liang <jiallian@amazon.com>
1 parent 1e3c249 commit c5fe949

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

datasources/build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ dependencies {
2828
implementation ('com.amazonaws:aws-encryption-sdk-java:2.4.1') {
2929
exclude group: 'org.bouncycastle', module: 'bcprov-ext-jdk18on'
3030
}
31-
// When building with -Pcrypto.standard=FIPS-140-3, bcFips jars are provided by OpenSearch
32-
if (FipsBuildParams.isInFipsMode()) {
33-
compileOnly "org.bouncycastle:bc-fips:${versions.bouncycastle_jce}"
34-
} else {
35-
implementation "org.bouncycastle:bc-fips:${versions.bouncycastle_jce}"
36-
}
31+
// bc-fips is provided by OpenSearch core (ships in lib/ by default since 3.6.0)
32+
compileOnly "org.bouncycastle:bc-fips:${versions.bouncycastle_jce}"
3733

3834
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
3935
testImplementation('org.junit.jupiter:junit-jupiter:5.9.3')

0 commit comments

Comments
 (0)