From fb43a33a8afd3fcbbea01043c7af2133f228524d Mon Sep 17 00:00:00 2001 From: Yas Okada Date: Fri, 5 Jan 2024 11:15:21 +0900 Subject: [PATCH] workaround for the issue about parsing private key https://github.com/box/box-java-sdk/issues/1217 https://github.com/box/box-java-sdk?tab=readme-ov-file#fips-140-2-compliance --- build.gradle | 7 ++++++- gradle/dependency-locks/runtimeClasspath.lockfile | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 5cdcff7..b520ca7 100644 --- a/build.gradle +++ b/build.gradle @@ -32,7 +32,12 @@ dependencies { compile "org.embulk:embulk-util-file:0.1.3" compile "org.embulk:embulk-util-config:0.3.2" - compile 'com.box:box-java-sdk:4.0.0' + implementation('com.box:box-java-sdk:4.0.0') { + exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on' + exclude group: 'org.bouncycastle', module: 'bcpkix-jdk15on' + } + runtimeOnly('org.bouncycastle:bcprov-jdk15on:1.70') + runtimeOnly('org.bouncycastle:bcpkix-jdk15on:1.70') testCompile "junit:junit:4.+" } diff --git a/gradle/dependency-locks/runtimeClasspath.lockfile b/gradle/dependency-locks/runtimeClasspath.lockfile index d88d130..73575e0 100644 --- a/gradle/dependency-locks/runtimeClasspath.lockfile +++ b/gradle/dependency-locks/runtimeClasspath.lockfile @@ -12,8 +12,9 @@ com.squareup.okio:okio-jvm:3.0.0 com.squareup.okio:okio:3.0.0 javax.validation:validation-api:1.1.0.Final org.bitbucket.b_c:jose4j:0.9.0 -org.bouncycastle:bcpkix-jdk15on:1.57 -org.bouncycastle:bcprov-jdk15on:1.57 +org.bouncycastle:bcpkix-jdk15on:1.70 +org.bouncycastle:bcprov-jdk15on:1.70 +org.bouncycastle:bcutil-jdk15on:1.70 org.embulk:embulk-util-config:0.3.2 org.embulk:embulk-util-file:0.1.3 org.jetbrains.kotlin:kotlin-stdlib-common:1.6.20