aboutsummaryrefslogtreecommitdiff
path: root/build-logic
diff options
context:
space:
mode:
Diffstat (limited to 'build-logic')
-rw-r--r--build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.bouncycastle-dependency.gradle.kts13
1 files changed, 13 insertions, 0 deletions
diff --git a/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.bouncycastle-dependency.gradle.kts b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.bouncycastle-dependency.gradle.kts
new file mode 100644
index 00000000..d0f54e59
--- /dev/null
+++ b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.bouncycastle-dependency.gradle.kts
@@ -0,0 +1,13 @@
+/**
+ * Bouncy Castle 1.71 changed their packaging to stop shipping jdk15on artifacts, and instead use
+ * multi-release JARs with the jdk15to18 suffix. This plugin replaces older dependencies to use the
+ * new version and artifact.
+ */
+configurations.all {
+ resolutionStrategy.eachDependency {
+ if (requested.group == "org.bouncycastle" && requested.name.contains("jdk15on")) {
+ val replacement = "${requested.group}:${requested.name.replace("jdk15on", "jdk15to18")}:1.71"
+ useTarget(replacement)
+ }
+ }
+}