From 321c91c264887eabda10a63a66906c1a637bd8b3 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 13 May 2020 22:20:32 +0200 Subject: [PATCH] [build] Introduce bouncyCastleVersion variable and use it Also bumps bouncy castle to 1.65. --- build.gradle | 1 + smack-core/build.gradle | 2 +- smack-openpgp/build.gradle | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 76cf80d61..dd3e1bf57 100644 --- a/build.gradle +++ b/build.gradle @@ -116,6 +116,7 @@ allprojects { ].collect { project(it) } junitVersion = '5.6.0' commonsIoVersion = '2.6' + bouncyCastleVersion = '1.65' if (project.hasProperty("useSonatype")) { useSonatype = project.getProperty("useSonatype").toBoolean() } else { diff --git a/smack-core/build.gradle b/smack-core/build.gradle index acbbba065..9a8bd757d 100644 --- a/smack-core/build.gradle +++ b/smack-core/build.gradle @@ -18,7 +18,7 @@ dependencies { // 'implementation' here since there is no need to shadow it // outside of the fixtures compilation classpath. That is, no test // should ever setup Bouncy Castle as security provider explicitly. - testFixturesImplementation 'org.bouncycastle:bcprov-jdk15on:1.64' + testFixturesImplementation "org.bouncycastle:bcprov-jdk15on:${bouncyCastleVersion}" testFixturesImplementation 'org.apache.commons:commons-lang3:3.10' testFixturesApi "org.jxmpp:jxmpp-jid:$jxmppVersion:tests" diff --git a/smack-openpgp/build.gradle b/smack-openpgp/build.gradle index b9e90d9c0..23d15a366 100644 --- a/smack-openpgp/build.gradle +++ b/smack-openpgp/build.gradle @@ -10,7 +10,7 @@ dependencies { api 'org.pgpainless:pgpainless-core:0.0.1-alpha11' - testImplementation "org.bouncycastle:bcprov-jdk15on:1.65" + testImplementation "org.bouncycastle:bcprov-jdk15on:${bouncyCastleVersion}" testFixturesApi(testFixtures(project(":smack-core"))) testCompile group: 'commons-io', name: 'commons-io', version: "$commonsIoVersion"