Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
apply plugin: 'org.jetbrains.kotlin.jvm'
|
|
|
|
apply plugin: 'org.jetbrains.kotlin.plugin.jpa'
|
2019-07-09 09:09:21 +00:00
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
apply plugin: 'idea'
|
2019-07-09 09:09:21 +00:00
|
|
|
|
|
|
|
description 'Corda core tests'
|
|
|
|
|
|
|
|
configurations {
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
integrationTestImplementation.extendsFrom testImplementation
|
2019-07-09 09:09:21 +00:00
|
|
|
integrationTestRuntimeOnly.extendsFrom testRuntimeOnly
|
|
|
|
|
2024-01-22 11:31:51 +00:00
|
|
|
smokeTestImplementation.extendsFrom implementation
|
2019-07-09 09:09:21 +00:00
|
|
|
smokeTestRuntimeOnly.extendsFrom runtimeOnly
|
|
|
|
|
2024-01-22 11:31:51 +00:00
|
|
|
testArtifacts.extendsFrom testRuntimeOnlyClasspath
|
|
|
|
|
|
|
|
corda4_11
|
|
|
|
}
|
2019-08-02 08:05:19 +00:00
|
|
|
|
2019-07-09 09:09:21 +00:00
|
|
|
sourceSets {
|
|
|
|
integrationTest {
|
|
|
|
kotlin {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/kotlin')
|
|
|
|
}
|
|
|
|
java {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/java')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
smokeTest {
|
|
|
|
kotlin {
|
|
|
|
// We must NOT have any Node code on the classpath, so do NOT
|
|
|
|
// include the test or integrationTest dependencies here.
|
|
|
|
srcDir file('src/smoke-test/kotlin')
|
|
|
|
}
|
|
|
|
java {
|
|
|
|
srcDir file('src/smoke-test/java')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
processSmokeTestResources {
|
|
|
|
// Bring in the fully built corda.jar for use by NodeFactory in the smoke tests
|
2024-01-22 11:31:51 +00:00
|
|
|
from(tasks.getByPath(":node:capsule:buildCordaJAR")) {
|
2019-07-09 09:09:21 +00:00
|
|
|
rename 'corda-(.*)', 'corda.jar'
|
|
|
|
}
|
2024-01-22 11:31:51 +00:00
|
|
|
from(tasks.getByPath(":finance:workflows:jar")) {
|
|
|
|
rename 'corda-finance-workflows-.*.jar', 'corda-finance-workflows.jar'
|
|
|
|
}
|
|
|
|
from(tasks.getByPath(":finance:contracts:jar")) {
|
|
|
|
rename 'corda-finance-contracts-.*.jar', 'corda-finance-contracts.jar'
|
|
|
|
}
|
|
|
|
from(tasks.getByPath(":testing:cordapps:4.11-workflows:jar"))
|
|
|
|
from(configurations.corda4_11)
|
2019-07-09 09:09:21 +00:00
|
|
|
}
|
|
|
|
|
2024-03-13 10:36:12 +00:00
|
|
|
processIntegrationTestResources {
|
|
|
|
from(tasks.getByPath(":finance:contracts:jar")) {
|
|
|
|
rename 'corda-finance-contracts-.*.jar', 'corda-finance-contracts.jar'
|
|
|
|
}
|
|
|
|
from(configurations.corda4_11)
|
|
|
|
}
|
|
|
|
|
2024-02-19 14:58:52 +00:00
|
|
|
processTestResources {
|
|
|
|
from(configurations.corda4_11)
|
|
|
|
}
|
|
|
|
|
2019-07-09 09:09:21 +00:00
|
|
|
dependencies {
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
testImplementation project(":core")
|
2024-03-13 10:36:12 +00:00
|
|
|
testImplementation project(":serialization")
|
|
|
|
testImplementation project(":finance:contracts")
|
|
|
|
testImplementation project(":finance:workflows")
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
testImplementation project(":node")
|
|
|
|
testImplementation project(":node-api")
|
|
|
|
testImplementation project(":client:rpc")
|
|
|
|
testImplementation project(":common-configuration-parsing")
|
|
|
|
testImplementation project(":core-test-utils")
|
|
|
|
testImplementation project(":test-utils")
|
2024-03-13 10:36:12 +00:00
|
|
|
testImplementation project(":node-driver")
|
|
|
|
// used by FinalityFlowTests
|
|
|
|
testImplementation project(':testing:cordapps:cashobservers')
|
|
|
|
testImplementation(project(path: ':core', configuration: 'testArtifacts')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
|
|
|
|
testImplementation "junit:junit:$junit_version"
|
2024-04-18 08:40:42 +00:00
|
|
|
testImplementation "org.apache.commons:commons-fileupload2-jakarta:$fileupload_version"
|
2019-07-09 09:09:21 +00:00
|
|
|
// Guava: Google test library (collections test suite)
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
testImplementation "com.google.guava:guava-testlib:$guava_version"
|
|
|
|
testImplementation "com.google.jimfs:jimfs:1.1"
|
2024-03-13 10:36:12 +00:00
|
|
|
testImplementation "com.typesafe:config:$typesafe_config_version"
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
2019-07-09 09:09:21 +00:00
|
|
|
// Hamkrest, for fluent, composable matchers
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
testImplementation "com.natpryce:hamkrest:$hamkrest_version"
|
2024-03-13 10:36:12 +00:00
|
|
|
testImplementation 'org.hamcrest:hamcrest-library:2.1'
|
|
|
|
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockito_kotlin_version"
|
|
|
|
testImplementation "org.mockito:mockito-core:$mockito_version"
|
2019-07-09 09:09:21 +00:00
|
|
|
// AssertJ: for fluent assertions for testing
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
testImplementation "org.assertj:assertj-core:${assertj_version}"
|
2019-07-09 09:09:21 +00:00
|
|
|
// Guava: Google utilities library.
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
testImplementation "com.google.guava:guava:$guava_version"
|
2024-03-13 10:36:12 +00:00
|
|
|
testImplementation "com.esotericsoftware:kryo:$kryo_version"
|
|
|
|
testImplementation "co.paralleluniverse:quasar-core:$quasar_version"
|
|
|
|
testImplementation "org.hibernate:hibernate-core:$hibernate_version"
|
2024-04-03 10:14:19 +00:00
|
|
|
testImplementation "org.bouncycastle:bcprov-lts8on:${bouncycastle_version}"
|
2024-03-13 10:36:12 +00:00
|
|
|
testImplementation "io.netty:netty-common:$netty_version"
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
2024-10-02 11:53:11 +00:00
|
|
|
testImplementation "io.dropwizard.metrics:metrics-jmx:$metrics_version"
|
2024-03-13 10:36:12 +00:00
|
|
|
|
|
|
|
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
|
|
|
|
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
2019-07-09 09:09:21 +00:00
|
|
|
|
|
|
|
// Smoke tests do NOT have any Node code on the classpath!
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
smokeTestImplementation project(":core")
|
|
|
|
smokeTestImplementation project(":node-api")
|
|
|
|
smokeTestImplementation project(":client:rpc")
|
2024-01-22 11:31:51 +00:00
|
|
|
smokeTestImplementation project(':smoke-test-utils')
|
|
|
|
smokeTestImplementation project(':core-test-utils')
|
|
|
|
smokeTestImplementation project(":finance:workflows")
|
|
|
|
smokeTestImplementation project(":testing:cordapps:4.11-workflows")
|
2024-01-29 13:44:14 +00:00
|
|
|
smokeTestImplementation project(":finance:contracts")
|
2024-01-22 11:31:51 +00:00
|
|
|
smokeTestImplementation "org.assertj:assertj-core:${assertj_version}"
|
2024-04-03 10:14:19 +00:00
|
|
|
smokeTestImplementation "org.bouncycastle:bcprov-lts8on:${bouncycastle_version}"
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
smokeTestImplementation "co.paralleluniverse:quasar-core:$quasar_version"
|
2019-07-09 09:09:21 +00:00
|
|
|
smokeTestImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
|
|
|
|
smokeTestImplementation "junit:junit:$junit_version"
|
|
|
|
|
|
|
|
smokeTestRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
|
|
|
smokeTestRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
|
|
|
|
smokeTestRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
2024-01-03 11:22:03 +00:00
|
|
|
smokeTestRuntimeOnly "org.slf4j:slf4j-simple:$slf4j_version"
|
2019-07-09 09:09:21 +00:00
|
|
|
|
2024-01-22 11:31:51 +00:00
|
|
|
corda4_11 "net.corda:corda-finance-contracts:4.11"
|
|
|
|
corda4_11 "net.corda:corda-finance-workflows:4.11"
|
|
|
|
corda4_11 "net.corda:corda:4.11"
|
2019-07-09 09:09:21 +00:00
|
|
|
}
|
|
|
|
|
2020-07-07 08:08:58 +00:00
|
|
|
tasks.withType(Test).configureEach {
|
2019-07-09 09:09:21 +00:00
|
|
|
// fork a new test process for every test class
|
|
|
|
forkEvery = 10
|
|
|
|
}
|
|
|
|
|
2024-01-22 11:31:51 +00:00
|
|
|
tasks.register('testJar', Jar) {
|
2019-07-09 09:09:21 +00:00
|
|
|
classifier "tests"
|
|
|
|
from sourceSets.test.output
|
|
|
|
}
|
|
|
|
|
2024-01-22 11:31:51 +00:00
|
|
|
tasks.register('integrationTest', Test) {
|
2019-07-09 09:09:21 +00:00
|
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
}
|
|
|
|
|
2024-01-22 11:31:51 +00:00
|
|
|
tasks.register('smokeTestJar', Jar) {
|
2019-07-09 09:09:21 +00:00
|
|
|
classifier 'smokeTests'
|
2024-01-22 11:31:51 +00:00
|
|
|
from(sourceSets.smokeTest.output) {
|
|
|
|
exclude("*.jar")
|
|
|
|
}
|
2019-07-09 09:09:21 +00:00
|
|
|
}
|
|
|
|
|
2024-01-22 11:31:51 +00:00
|
|
|
tasks.register('smokeTest', Test) {
|
2019-07-09 09:09:21 +00:00
|
|
|
dependsOn smokeTestJar
|
|
|
|
testClassesDirs = sourceSets.smokeTest.output.classesDirs
|
|
|
|
classpath = sourceSets.smokeTest.runtimeClasspath
|
Upgrade to gradle 7.6, kotlin 1.8 and jdk 17
Major changes due to JDK 17:
1. JDK17 JCE Provider now has built-in support for eddsas, corda uses
the bouncycastle (i2p) implementation. This PR removes the conflicting
algorithms from the built-in JCE provider.
2. JavaScript scripting has been removed from the JDK, the corda log4j config was using
scripting to conditionally output additional diagnostic info if the MDC
was populated. This PR has removed the scripting.
3. The artifactory plug-ins used are now deprecated, this PR has removed them
and uses the same code as Corda 5 for publishing to artifactory.
4. Javadoc generation has been modified to use the latest dokka plug-ins.
5. Gradle 7.6 has implemented an incredibly annoying change where transitive
dependencies are not put on the compile classpath, so that they have to be
explicitly added as dependencies to projects.
6. Mockito has been updated, which sadly meant that quite a few source files
have to changes to use the new (org.mockito.kotlin) package name. This makes
this PR appear much larger than it is.
7. A number of tests have been marked as ignored to get a green, broadly they fall
into 3 classes.
The first is related to crypto keypair tests, it appears some logic
in the JDK prefers to use the SunJCE implementation and we prefer to use
bouncycastle. I believe this issue can be fixed with better test setup.
The second group is related to our use of a method called "uncheckedCast(..)",
the purpose of this method was to get rid of the annoying unchecked cast compiler
warning that would otherwise exist. It looks like the Kotlin 1.9 compiler type
inference differs and at runtime sometimes the type it infers is "Void" which causes
an exception at runtime. The simplest solution is to use an explicit cast instead of
unchecked cast, Corda 5 have removed unchecked cast from their codebase.
The third class are a number of ActiveMQ tests which appear to have a memory leak somewhere.
2023-03-08 12:19:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
downloadJavadoc = true
|
|
|
|
downloadSources = true
|
|
|
|
}
|
2019-07-09 09:09:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// quasar exclusions upon agent code instrumentation at run-time
|
|
|
|
quasar {
|
|
|
|
excludePackages.addAll(
|
|
|
|
"antlr**",
|
|
|
|
"com.codahale**",
|
|
|
|
"com.fasterxml.**",
|
|
|
|
"com.github.benmanes.caffeine.**",
|
|
|
|
"com.google.**",
|
|
|
|
"com.lmax.**",
|
|
|
|
"com.zaxxer.**",
|
|
|
|
"net.bytebuddy**",
|
|
|
|
"io.github.classgraph**",
|
|
|
|
"io.netty*",
|
|
|
|
"liquibase**",
|
|
|
|
"nonapi.io.github.classgraph.**",
|
|
|
|
"org.apiguardian.**",
|
|
|
|
"org.bouncycastle**",
|
|
|
|
"org.codehaus.**",
|
|
|
|
"org.h2**",
|
|
|
|
"org.hibernate**",
|
|
|
|
"org.jboss.**",
|
|
|
|
"org.objenesis**",
|
|
|
|
"org.w3c.**",
|
|
|
|
"org.xml**",
|
|
|
|
"org.yaml**",
|
|
|
|
"rx**")
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
testArtifacts testJar
|
|
|
|
}
|