Repository navigation
#2557 remove deprecated Gradle syntax #2575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note that jar was already part of assemble, so it does not need to be added here |
||
|
|
||
| publishing { | ||
| publications { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
|
|
||
| plugins { | ||
| id "biz.aQute.bnd.builder" version "7.1.0" | ||
| id "biz.aQute.bnd.builder" version "7.2.3" | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the old plugin caused Gradle deprecation warnings itself; fixed in 7.2.x so I bumped to newest 7.2.x release |
||
| } | ||
|
|
||
| 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"]) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since 0.9.5, the protobuf plugin writes to a different folder |
||
| 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 { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either return type or
def, not both ;-)