diff --git a/build.gradle b/build.gradle index c1ba01944e4..ee99538a480 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ plugins { println("Environment setup:") ["BC_JDK8", "BC_JDK11", "BC_JDK17","BC_JDK21", "BC_JDK25"].each({ it -> - println("Looking for JDK ENV '${it}' found ${System.getenv(it)}"); + println("Looking for JDK ENV '${it}' found ${System.getenv(it)}") // if (System.getenv(it) == null) { // throw new RuntimeException("Looking for JDK ENV '${it}' but found null, see README 'Environmental variables'"); // } @@ -33,20 +33,20 @@ if (JavaVersion.current().isJava8Compatible()) { } } -def String deriveOSGIVersion(String prjVersion) { +String deriveOSGIVersion(String prjVersion) { if (prjVersion.contains("-SNAPSHOT")) { // Snapshots always extend to fourth level and terminate with time in seconds since epoch. - prjVersion = prjVersion.replace("-SNAPSHOT", ""); + prjVersion = prjVersion.replace("-SNAPSHOT", "") while (prjVersion.count(".") < 2) { - prjVersion = prjVersion + ".0"; + prjVersion = prjVersion + ".0" } - prjVersion = prjVersion + "." + System.currentTimeMillis().intdiv(1000L).intdiv(60).intdiv(60).intdiv(24); + prjVersion = prjVersion + "." + System.currentTimeMillis().intdiv(1000L).intdiv(60).intdiv(60).intdiv(24) } return prjVersion } ext { - bundle_version = deriveOSGIVersion(version.toString()); + bundle_version = deriveOSGIVersion(version.toString()) // Number of parallel test forks: half the available processors (at least 1). Each test JVM is // heavy (it re-runs the FIPS power-on self-tests on startup) and reserves a sizable heap, so @@ -70,7 +70,7 @@ configure(allprojects.findAll {it.name != 'bom'}) { } dependencies { - testImplementation group: 'junit', name: 'junit', version: '4.13.2' + testImplementation 'junit:junit:4.13.2' } tasks.withType(JavaCompile).configureEach { options.errorprone { @@ -191,8 +191,8 @@ ext { // unchanged: -jdk18on- with no debug info. ext.releaseDebug = Boolean.parseBoolean(project.findProperty('release.debug')?.toString() ?: 'false') - JavaVersion current = JavaVersion.current(); - String range; + JavaVersion current = JavaVersion.current() + String range if (current.compareTo(JavaVersion.VERSION_1_8) <= 0) { range = 'jdk15to18' } else { @@ -207,18 +207,18 @@ configure(subprojects.findAll {it.name != 'bom'}) { apply plugin: 'maven-publish' - JavaVersion current = JavaVersion.current(); - int releaseVersion = 8; + JavaVersion current = JavaVersion.current() + int releaseVersion = 8 if (current.compareTo(JavaVersion.VERSION_1_8) <= 0) { releaseVersion = 5 } compileJava { - options.release = releaseVersion; + options.release = releaseVersion } compileTestJava { - options.release = 8; + options.release = 8 } @@ -236,8 +236,8 @@ configure(subprojects.findAll {it.name != 'bom'}) { } test { - forkEvery = 1; - maxParallelForks = 1; + forkEvery = 1 + maxParallelForks = 1 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -266,8 +266,8 @@ configure(subprojects.findAll {it.name != 'bom'}) { } checkstyle { - configFile = file("$rootDir/config/checkstyle/checkstyle.xml"); - toolVersion = '14.0.0'; // your choice here + configFile = file("$rootDir/config/checkstyle/checkstyle.xml") + toolVersion = '14.0.0' // your choice here sourceSets = [project.sourceSets.main] } @@ -307,7 +307,7 @@ configure(subprojects.findAll {it.name != 'bom'}) { } tasks.withType(JavaCompile).configureEach { - options.debug = releaseDebug; + options.debug = releaseDebug } tasks.withType(Test).configureEach { diff --git a/core/build.gradle b/core/build.gradle index f0ca8e53a3c..ed5d5e74b74 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -1,8 +1,8 @@ apply plugin: 'application' dependencies { - implementation group: 'org.openjdk.jmh', name: 'jmh-core', version: '1.33' - annotationProcessor group: 'org.openjdk.jmh', name: 'jmh-generator-annprocess', version: '1.33' + implementation 'org.openjdk.jmh:jmh-core:1.33' + annotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.33' } application { mainClass.set("org.bouncycastle.crypto.fpe.SP80038GMicroBenchmark") @@ -14,8 +14,8 @@ test { minHeapSize = "512m" maxHeapSize = "8192m" - maxParallelForks = rootProject.ext.calcTestForks(); - forkEvery = 1; + maxParallelForks = rootProject.ext.calcTestForks() + forkEvery = 1 jvmArgs = ['-Dtest.java.version.prefix=any'] } @@ -104,11 +104,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar publishing { publications { diff --git a/jmail/build.gradle b/jmail/build.gradle index 4b8668ba9a4..86b330dcb9d 100644 --- a/jmail/build.gradle +++ b/jmail/build.gradle @@ -1,6 +1,6 @@ plugins { - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" } jar.archiveBaseName = "bcjmail-$vmrange" @@ -31,12 +31,12 @@ dependencies { implementation project(':util') implementation project(':pkix') - implementation group: 'jakarta.mail', name: 'jakarta.mail-api', version: '2.0.1' - implementation group: 'jakarta.activation', name: 'jakarta.activation-api', version: '2.0.0' + implementation 'jakarta.mail:jakarta.mail-api:2.0.1' + implementation 'jakarta.activation:jakarta.activation-api:2.0.0' // the same two as modules ("jakarta.mail", "jakarta.activation") for the module-info.java compile, // resolved by coordinate so the path follows a version bump rather than naming a file under libs/. - jakartaModulePath group: 'jakarta.mail', name: 'jakarta.mail-api', version: '2.0.1' - jakartaModulePath group: 'jakarta.activation', name: 'jakarta.activation-api', version: '2.0.0' + jakartaModulePath 'jakarta.mail:jakarta.mail-api:2.0.1' + jakartaModulePath 'jakarta.activation:jakarta.activation-api:2.0.0' java9Implementation files(sourceSets.main.output.classesDirs) { builtBy compileJava @@ -122,15 +122,11 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar test { - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 } compileJava9Java.dependsOn([":prov:jar", ":util:jar",":pkix:jar"]) diff --git a/mail/build.gradle b/mail/build.gradle index 1b7983358b2..f4035b1f861 100644 --- a/mail/build.gradle +++ b/mail/build.gradle @@ -1,5 +1,5 @@ plugins { - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" } jar.archiveBaseName = "bcmail-$vmrange" @@ -21,11 +21,11 @@ dependencies { implementation project(':util') implementation project(':pkix') - implementation group: 'javax.mail', name: 'mail', version: '1.4' + implementation 'javax.mail:mail:1.4' // javax.mail:mail:1.4 pulls in javax.activation:activation:1.1 transitively - both are // needed as automatic modules ("mail", "activation") on the module-info.java compile path, // since neither javax.mail nor javax.activation is a JDK-bundled module on Java 11+. - mailModulePath group: 'javax.mail', name: 'mail', version: '1.4' + mailModulePath 'javax.mail:mail:1.4' java9Implementation files(sourceSets.main.output.classesDirs) { builtBy compileJava @@ -121,15 +121,11 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar test { - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 jvmArgs = ['-Dtest.java.version.prefix=any'] } diff --git a/misc/build.gradle b/misc/build.gradle index 8fb5088817d..6246199b607 100644 --- a/misc/build.gradle +++ b/misc/build.gradle @@ -10,7 +10,8 @@ plugins { // published mls module because it is a test tool for the RFC 9420 interoperability runner, // not library API: shipping it in bcmls put classes needing io.grpc and com.google.protobuf // into a published jar whose POM and OSGi manifest declared neither. - id 'com.google.protobuf' version '0.9.4' + // 0.9.6 stops using the multi-string dependency notation Gradle 9.1 deprecated. + id 'com.google.protobuf' version '0.9.6' } apply plugin: 'com.google.protobuf' @@ -24,15 +25,6 @@ def protocVersion = '3.25.9' jar.archiveBaseName = "bcmisc-$vmrange" -sourceSets { - main { - java { - srcDirs 'build/generated/source/proto/main/grpc' - srcDirs 'build/generated/source/proto/main/java' - } - } -} - dependencies { implementation project(':prov') implementation project(':util') @@ -42,7 +34,7 @@ dependencies { implementation project(':tls') implementation project(':mls') - implementation group: 'javax.mail', name: 'mail', version: '1.4' + implementation 'javax.mail:mail:1.4' // The MLS interop harness only, and by coordinate rather than as hand-placed jars under // test/libs, which were invisible both to Dependabot (see the note on files()/fileTree() @@ -62,7 +54,7 @@ dependencies { // via their main() methods; they need JUnit and the same javax.mail runtime // as the examples themselves. PrintTestResult is carried as a per-module // test copy under src/test (as every other module does). - testImplementation group: 'junit', name: 'junit', version: '4.13.2' + testImplementation 'junit:junit:4.13.2' } protobuf { diff --git a/mls/build.gradle b/mls/build.gradle index e896422d7b8..133a9e78a5f 100644 --- a/mls/build.gradle +++ b/mls/build.gradle @@ -1,7 +1,7 @@ plugins { // OSGI - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" // Generate IntelliJ IDEA's .idea & .iml project files // id 'idea' } @@ -97,11 +97,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar test { jvmArgs = ['-Dtest.java.version.prefix=any'] diff --git a/pg/build.gradle b/pg/build.gradle index 3cbee096e81..d93c1a284a8 100644 --- a/pg/build.gradle +++ b/pg/build.gradle @@ -1,6 +1,6 @@ plugins { - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" } sourceSets { @@ -22,7 +22,7 @@ dependencies { builtBy compileJava } - testImplementation group: 'junit', name: 'junit', version: '4.13.2' + testImplementation 'junit:junit:4.13.2' } evaluationDependsOn(":prov") @@ -133,16 +133,12 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar test { - forkEvery = 1; - maxParallelForks = 8; - maxHeapSize = "3g"; + forkEvery = 1 + maxParallelForks = 8 + maxHeapSize = "3g" jvmArgs = ['-Dtest.java.version.prefix=any'] } diff --git a/pgsc/build.gradle b/pgsc/build.gradle index f237788e7ba..de0b9cfcb4c 100644 --- a/pgsc/build.gradle +++ b/pgsc/build.gradle @@ -1,6 +1,6 @@ plugins { - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" } sourceSets { @@ -30,12 +30,12 @@ dependencies { // without YubiKit; an application that wants the YubiKey backend adds // com.yubico.yubikit:openpgp and com.yubico.yubikit:desktop // to its own classpath, and gets a NoClassDefFoundError from the yubikey package if it does not. - compileOnly group: 'com.yubico.yubikit', name: 'openpgp', version: '3.2.0' - compileOnly group: 'com.yubico.yubikit', name: 'desktop', version: '3.2.0' + compileOnly 'com.yubico.yubikit:openpgp:3.2.0' + compileOnly 'com.yubico.yubikit:desktop:3.2.0' - testImplementation group: 'com.yubico.yubikit', name: 'openpgp', version: '3.2.0' - testImplementation group: 'com.yubico.yubikit', name: 'desktop', version: '3.2.0' - testImplementation group: 'junit', name: 'junit', version: '4.13.2' + testImplementation 'com.yubico.yubikit:openpgp:3.2.0' + testImplementation 'com.yubico.yubikit:desktop:3.2.0' + testImplementation 'junit:junit:4.13.2' } evaluationDependsOn(":core") @@ -106,16 +106,12 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar test { - forkEvery = 1; - maxParallelForks = 8; - maxHeapSize = "3g"; + forkEvery = 1 + maxParallelForks = 8 + maxHeapSize = "3g" jvmArgs = ['-Dtest.java.version.prefix=any'] } diff --git a/pkix/build.gradle b/pkix/build.gradle index e7e5e37680a..4549b0782bb 100644 --- a/pkix/build.gradle +++ b/pkix/build.gradle @@ -1,6 +1,6 @@ plugins { - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" } sourceSets { @@ -25,7 +25,7 @@ dependencies { builtBy compileJava } - testImplementation group: 'junit', name: 'junit', version: '4.13.2' + testImplementation 'junit:junit:4.13.2' } compileJava { @@ -94,15 +94,11 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar test { - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 jvmArgs = ['-Dtest.java.version.prefix=any'] } diff --git a/prov/build.gradle b/prov/build.gradle index 709977adae7..9fcde0d8fb8 100644 --- a/prov/build.gradle +++ b/prov/build.gradle @@ -1,11 +1,11 @@ plugins { - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" } dependencies { implementation project(':core') testImplementation project(':core') - testImplementation group: 'com.unboundid', name: 'unboundid-ldapsdk', version: '6.0.8' + testImplementation 'com.unboundid:unboundid-ldapsdk:6.0.8' } evaluationDependsOn(":core") @@ -188,7 +188,7 @@ compileJava.dependsOn stampVersion compileTestJava.dependsOn stampVersion compileJava { - options.release = 8; + options.release = 8 } compileJava9Java { @@ -304,11 +304,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar @@ -356,14 +352,14 @@ dependencies { } dependencies { - test11Implementation group: 'junit', name: 'junit', version: '4.13.2' - test15Implementation group: 'junit', name: 'junit', version: '4.13.2' - test17Implementation group: 'junit', name: 'junit', version: '4.13.2' - test25Implementation group: 'junit', name: 'junit', version: '4.13.2' - test11Implementation group: 'com.unboundid', name: 'unboundid-ldapsdk', version: '6.0.8' - test15Implementation group: 'com.unboundid', name: 'unboundid-ldapsdk', version: '6.0.8' - test17Implementation group: 'com.unboundid', name: 'unboundid-ldapsdk', version: '6.0.8' - test25Implementation group: 'com.unboundid', name: 'unboundid-ldapsdk', version: '6.0.8' + test11Implementation 'junit:junit:4.13.2' + test15Implementation 'junit:junit:4.13.2' + test17Implementation 'junit:junit:4.13.2' + test25Implementation 'junit:junit:4.13.2' + test11Implementation 'com.unboundid:unboundid-ldapsdk:6.0.8' + test15Implementation 'com.unboundid:unboundid-ldapsdk:6.0.8' + test17Implementation 'com.unboundid:unboundid-ldapsdk:6.0.8' + test25Implementation 'com.unboundid:unboundid-ldapsdk:6.0.8' test11Implementation(project(":core")) test15Implementation(project(":core")) test17Implementation(project(":core")) @@ -423,7 +419,7 @@ test { // Every AllTest* class already runs in its own JVM (forkEvery = 1 from the root build), so // the forks share no System/Security property state; run them alongside each other as the // other modules' test tasks and prov's own test8 / test11 / test15 / test17 / test25 do. - maxParallelForks = 8; + maxParallelForks = 8 jvmArgs = ['-Dtest.java.version.prefix=any'] } @@ -435,8 +431,8 @@ task test8(type: Test) { testClassesDirs = sourceSets.test.output.classesDirs classpath = sourceSets.test.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -465,8 +461,8 @@ task test11(type: Test) { testClassesDirs = sourceSets.test11.output.classesDirs classpath = sourceSets.test11.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -497,8 +493,8 @@ task test15(type: Test) { testClassesDirs = sourceSets.test15.output.classesDirs classpath = sourceSets.test15.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -529,8 +525,8 @@ task test17(type: Test) { testClassesDirs = sourceSets.test17.output.classesDirs classpath = sourceSets.test17.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -561,8 +557,8 @@ task test25(type: Test) { testClassesDirs = sourceSets.test25.output.classesDirs classpath = sourceSets.test25.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false diff --git a/test/build.gradle b/test/build.gradle index b11badb5849..eea5e3ec92d 100644 --- a/test/build.gradle +++ b/test/build.gradle @@ -1,6 +1,6 @@ dependencies { - implementation group: 'net.java.dev.jna', name: 'jna', version: '4.3.0' - implementation group: 'net.java.dev.jna', name: 'jna-platform', version: '4.3.0' + implementation 'net.java.dev.jna:jna:4.3.0' + implementation 'net.java.dev.jna:jna-platform:4.3.0' implementation project(":core") // implementation project(":mail") implementation project(":pg") @@ -8,6 +8,6 @@ dependencies { implementation project(":pkix") implementation project(":prov") implementation project(":tls") - testImplementation group: 'junit', name: 'junit', version: '4.11' + testImplementation 'junit:junit:4.11' } diff --git a/tls-klog/build.gradle b/tls-klog/build.gradle index bd07e3e9be3..2636f75be2e 100644 --- a/tls-klog/build.gradle +++ b/tls-klog/build.gradle @@ -1,5 +1,5 @@ plugins { - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" } // bctls-klog is the RFC 9850 (SSLKEYLOGFILE) key-logging build of the TLS API: bctls with the @@ -228,11 +228,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar publishing { publications { diff --git a/tls/build.gradle b/tls/build.gradle index 725c22b276a..a18e7063b48 100644 --- a/tls/build.gradle +++ b/tls/build.gradle @@ -1,6 +1,6 @@ plugins { - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" } jar.archiveBaseName = "bctls-$vmrange" @@ -103,11 +103,11 @@ dependencies { builtBy compileJava17Java } - test11Implementation group: 'junit', name: 'junit', version: '4.13.2' - test15Implementation group: 'junit', name: 'junit', version: '4.13.2' - test17Implementation group: 'junit', name: 'junit', version: '4.13.2' - test21Implementation group: 'junit', name: 'junit', version: '4.13.2' - test25Implementation group: 'junit', name: 'junit', version: '4.13.2' + test11Implementation 'junit:junit:4.13.2' + test15Implementation 'junit:junit:4.13.2' + test17Implementation 'junit:junit:4.13.2' + test21Implementation 'junit:junit:4.13.2' + test25Implementation 'junit:junit:4.13.2' test11Implementation project(':prov') test11Implementation project(':util') @@ -268,11 +268,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar publishing { publications { @@ -296,8 +292,8 @@ task test8(type: Test) { testClassesDirs = sourceSets.test.output.classesDirs classpath = sourceSets.test.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -326,8 +322,8 @@ task test11(type: Test) { testClassesDirs = sourceSets.test11.output.classesDirs classpath = sourceSets.test11.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -358,8 +354,8 @@ task test15(type: Test) { testClassesDirs = sourceSets.test15.output.classesDirs classpath = sourceSets.test15.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -390,8 +386,8 @@ task test17(type: Test) { testClassesDirs = sourceSets.test17.output.classesDirs classpath = sourceSets.test17.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -422,8 +418,8 @@ task test21(type: Test) { testClassesDirs = sourceSets.test21.output.classesDirs classpath = sourceSets.test21.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false @@ -447,15 +443,15 @@ task test21(type: Test) { task test25(type: Test) { - // This is testing the 21 code base + // This is testing the 25 code base onlyIf {System.getenv("BC_JDK25") != null} dependsOn jar testClassesDirs = sourceSets.test25.output.classesDirs classpath = sourceSets.test25.runtimeClasspath + files(jar.archiveFile) - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 maxHeapSize = "1536m" testLogging.showStandardStreams = false diff --git a/util/build.gradle b/util/build.gradle index c5bea76b0e6..eeaafaf55fc 100644 --- a/util/build.gradle +++ b/util/build.gradle @@ -1,6 +1,6 @@ plugins { - id "biz.aQute.bnd.builder" version "7.1.0" + id "biz.aQute.bnd.builder" version "7.2.3" } jar.archiveBaseName = "bcutil-$vmrange" @@ -20,7 +20,7 @@ dependencies { implementation project(':prov') - testImplementation group: 'junit', name: 'junit', version: '4.11' + testImplementation 'junit:junit:4.11' java9Implementation files([sourceSets.main.output.classesDirs]) { builtBy compileJava @@ -100,11 +100,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) { from javadoc.destinationDir } -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} +assemble.dependsOn javadocJar, sourcesJar publishing { publications { @@ -122,7 +118,7 @@ publishing { test { - forkEvery = 1; - maxParallelForks = 8; + forkEvery = 1 + maxParallelForks = 8 }