From 18cff9c1446f80157fdc0efd77030d536c1b7295 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 9 Apr 2022 13:49:31 +0000 Subject: 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 Co-authored-by: Harsh Shandilya --- ...ndroid-password-store.bouncycastle-dependency.gradle.kts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.bouncycastle-dependency.gradle.kts (limited to 'build-logic/kotlin-plugins/src') 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) + } + } +} -- cgit v1.2.3