aboutsummaryrefslogtreecommitdiff
path: root/build-logic
diff options
context:
space:
mode:
authorrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>2022-04-09 13:49:31 +0000
committerGitHub <noreply@github.com>2022-04-09 13:49:31 +0000
commit18cff9c1446f80157fdc0efd77030d536c1b7295 (patch)
tree4cd6cec904d7465c6a124c6e8d6f87777c071730 /build-logic
parente50b00cd986cfc75528895a368e4aac6302b2ce0 (diff)
chore(deps): update dependency org.pgpainless:pgpainless-core to v1.2.0 (#1832)
* chore(deps): update dependency org.pgpainless:pgpainless-core to v1.2.0 * gradle: bump bouncycastle to 1.71 * Transparently update older BC versions Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
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)
+ }
+ }
+}