Skip to content

Commit

Permalink
Ongoing work on modernising build.
Browse files Browse the repository at this point in the history
(mail and jmail left out for now)
  • Loading branch information
mwcw committed Feb 2, 2024
1 parent ca2d233 commit 0ac04f7
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 725 deletions.
76 changes: 0 additions & 76 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,79 +13,3 @@ test {
forkEvery = 1;
maxParallelForks = 8;
}


task test11(type:Test) {
forkEvery = 1;
maxParallelForks = 1;

systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
testLogging.showStandardStreams = true

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(11)
}

jvmArgs=['-Dtest.java.version.prefix=11.']


finalizedBy jacocoTestReport

filter {
includeTestsMatching "AllTest*"
if (project.hasProperty('excludeTests')) {
excludeTestsMatching "${excludeTests}"
}
}
}

task test17(type:Test) {
forkEvery = 1;
maxParallelForks = 1;

systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
testLogging.showStandardStreams = true

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
}

jvmArgs=['-Dtest.java.version.prefix=17.']


finalizedBy jacocoTestReport

filter {
includeTestsMatching "AllTest*"
if (project.hasProperty('excludeTests')) {
excludeTestsMatching "${excludeTests}"
}
}
}

task test21(type:Test) {
forkEvery = 1;
maxParallelForks = 1;

systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
testLogging.showStandardStreams = true

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(21)
}

jvmArgs=['-Dtest.java.version.prefix=21']


finalizedBy jacocoTestReport

filter {
includeTestsMatching "AllTest*"
if (project.hasProperty('excludeTests')) {
excludeTestsMatching "${excludeTests}"
}
}
}
18 changes: 9 additions & 9 deletions jmail/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ sourceSets {
}

dependencies {
implementation project(':prov')
implementation project(':util')
// implementation project(':prov')
// 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 files("$bc_prov")
implementation files("$bc_util")
implementation files("$bc_pkix")
implementation project(path: ':core')
// implementation files("$bc_prov")
// implementation files("$bc_util")
// implementation files("$bc_pkix")
// implementation project(path: ':core')

java9Implementation group: 'jakarta.mail', name: 'jakarta.mail-api', version: '2.0.1'
java9Implementation group: 'jakarta.activation', name: 'jakarta.activation-api', version: '2.0.0'
java9Implementation files("$bc_prov")
java9Implementation files("$bc_util")
java9Implementation files("$bc_pkix")
// java9Implementation files("$bc_prov")
// java9Implementation files("$bc_util")
// java9Implementation files("$bc_pkix")
java9Implementation files(sourceSets.main.output.classesDirs) {
builtBy compileJava
}
Expand Down
133 changes: 10 additions & 123 deletions mail/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,28 @@ sourceSets {
}
}

test11 {
java {
compileClasspath += main.output + test.output
runtimeClasspath += test.output
srcDir(files("src/test/java"))
}
}

}

dependencies {
implementation project(':prov')
implementation project(':util')
// implementation project(':prov')
// implementation project(':util')
implementation project(':pkix')

implementation group: 'javax.mail', name: 'mail', version: '1.4'
implementation files("$bc_prov")
implementation files("$bc_util")
implementation files("$bc_pkix")
implementation project(path: ':core')
// implementation files("$bc_prov")
// implementation files("$bc_util")
// implementation files("$bc_pkix")
// implementation project(path: ':core')

java9Implementation group: 'javax.mail', name: 'mail', version: '1.4'
java9Implementation files("$bc_prov")
java9Implementation files("$bc_util")
java9Implementation files("$bc_pkix")
// java9Implementation files("$bc_prov")
// java9Implementation files("$bc_util")
// java9Implementation files("$bc_pkix")
java9Implementation files(sourceSets.main.output.classesDirs) {
builtBy compileJava
}

test11Implementation group: 'javax.mail', name: 'mail', version: '1.4'
test11Implementation group: 'junit', name: 'junit', version: '4.13.2'
test11Implementation(project(":core"))
test11Implementation files("$bc_prov")
test11Implementation files("$bc_util")
test11Implementation files("$bc_pkix")

}

Expand Down Expand Up @@ -104,105 +92,4 @@ artifacts {
test {
forkEvery = 1;
maxParallelForks = 8;
}




task test11(type: Test) {

dependsOn(jar)

testClassesDirs = sourceSets.test11.output.classesDirs
classpath = sourceSets.test11.runtimeClasspath + files(jar.archiveFile)

forkEvery = 1;
maxParallelForks = 8;

systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
testLogging.showStandardStreams = true

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(11)
}

jvmArgs = ['-Dtest.java.version.prefix=11.']


finalizedBy jacocoTestReport

filter {
includeTestsMatching "AllTest*"
includeTestsMatching "All11Test*"
if (project.hasProperty('excludeTests')) {
excludeTestsMatching "${excludeTests}"
}
}
}


task test17(type: Test) {

dependsOn(jar)

testClassesDirs = sourceSets.test11.output.classesDirs
classpath = sourceSets.test11.runtimeClasspath + files(jar.archiveFile)

forkEvery = 1;
maxParallelForks = 8;

systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
testLogging.showStandardStreams = true

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
}

jvmArgs = ['-Dtest.java.version.prefix=17.']


finalizedBy jacocoTestReport

filter {
includeTestsMatching "AllTest*"
includeTestsMatching "All11Test*"
if (project.hasProperty('excludeTests')) {
excludeTestsMatching "${excludeTests}"
}
}
}


task test21(type: Test) {

dependsOn(jar)

testClassesDirs = sourceSets.test11.output.classesDirs
classpath = sourceSets.test11.runtimeClasspath + files(jar.archiveFile)

forkEvery = 1;
maxParallelForks = 8;

systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
testLogging.showStandardStreams = true

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(21)
}

jvmArgs = ['-Dtest.java.version.prefix=21']


finalizedBy jacocoTestReport

filter {
includeTestsMatching "AllTest*"
includeTestsMatching "All11Test*"
if (project.hasProperty('excludeTests')) {
excludeTestsMatching "${excludeTests}"
}
}
}
74 changes: 0 additions & 74 deletions mls/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,77 +116,3 @@ extractIncludeTestProto {

createStartScripts('org.bouncycastle.mls.client.impl.MLSClient')

task test11(type: Test) {
forkEvery = 1;
maxParallelForks = 1;

systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
testLogging.showStandardStreams = true

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(11)
}

jvmArgs = ['-Dtest.java.version.prefix=11.']


finalizedBy jacocoTestReport

filter {
includeTestsMatching "AllTest*"
if (project.hasProperty('excludeTests')) {
excludeTestsMatching "${excludeTests}"
}
}
}


task test17(type: Test) {
forkEvery = 1;
maxParallelForks = 1;

systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
testLogging.showStandardStreams = true

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
}

jvmArgs = ['-Dtest.java.version.prefix=17.']


finalizedBy jacocoTestReport

filter {
includeTestsMatching "AllTest*"
if (project.hasProperty('excludeTests')) {
excludeTestsMatching "${excludeTests}"
}
}
}

task test21(type: Test) {
forkEvery = 1;
maxParallelForks = 1;

systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
testLogging.showStandardStreams = true

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(21)
}

jvmArgs = ['-Dtest.java.version.prefix=21']

finalizedBy jacocoTestReport

filter {
includeTestsMatching "AllTest*"
if (project.hasProperty('excludeTests')) {
excludeTestsMatching "${excludeTests}"
}
}
}
Loading

0 comments on commit 0ac04f7

Please sign in to comment.