mirror of
https://github.com/corda/corda.git
synced 2024-12-26 16:11:12 +00:00
e38cd9ec63
* Remove unused dependencies from test-common * Explicit imports and formatting * Add core-test-utils project * Add dependency * Move Kryo serialization context to node-api (not serialization as we do not want to pull kryo into the serialization lib) * Move AMQP server serialization scheme to node api * Move serialization tests to node-api * Move internal test helpers without further dependencies. * Move out some types from RPCClientProxyHandler to node-api in preparation for moving the AMQP scheme * Move client AMQP context to node-api so we can move the test serialization rule out. * Move InternalSerializationTestHelpers to core-test-utils * Moved testing.core to core-test-utils * Make detekt happy * Add api-scanner to core-test-utils * Remove inlined package names introduced by IntelliJ refactoring * Update api-current.txt to account for reordering. * Add core-test-utils to list of published artifacts. * Add missing import * Location of things in api text has moved again (publish name of artefact?) * Revert all additions to the API, leaving just the reordering * Code review: fix up core-test-utils build.gradle and introduce kryo version constant. * Remove OpenSsl flag from ssl config stub (can't be used from node-api) * Suppress detekt warning * Move core test util tests to the right module * Expose kotlin test as a transient dependency - projects have come to rely on that. * Fix typo in package name
129 lines
4.2 KiB
Groovy
129 lines
4.2 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
apply plugin: 'net.corda.plugins.api-scanner'
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
|
|
description 'Corda client RPC modules'
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
configurations {
|
|
integrationTestCompile.extendsFrom testCompile
|
|
integrationTestRuntimeOnly.extendsFrom testRuntimeOnly
|
|
|
|
smokeTestCompile.extendsFrom compile
|
|
smokeTestRuntimeOnly.extendsFrom runtimeOnly
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
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')
|
|
}
|
|
resources {
|
|
srcDirs "src/integration-test/resources"
|
|
}
|
|
}
|
|
smokeTest {
|
|
kotlin {
|
|
// We must NOT have any Node code on the classpath, so do NOT
|
|
// include the test or integrationTest dependencies here.
|
|
compileClasspath += main.output
|
|
runtimeClasspath += main.output
|
|
srcDir file('src/smoke-test/kotlin')
|
|
}
|
|
java {
|
|
compileClasspath += main.output
|
|
runtimeClasspath += main.output
|
|
srcDir file('src/smoke-test/java')
|
|
}
|
|
}
|
|
}
|
|
|
|
processSmokeTestResources {
|
|
from(project(':node:capsule').tasks['buildCordaJAR']) {
|
|
rename 'corda-(.*)', 'corda.jar'
|
|
}
|
|
from(project(':finance:workflows').tasks['jar']) {
|
|
rename '.*finance-workflows-.*', 'cordapp-finance-workflows.jar'
|
|
}
|
|
from(project(':finance:contracts').tasks['jar']) {
|
|
rename '.*finance-contracts-.*', 'cordapp-finance-contracts.jar'
|
|
}
|
|
}
|
|
|
|
// To find potential version conflicts, run "gradle htmlDependencyReport" and then look in
|
|
// build/reports/project/dependencies/index.html for green highlighted parts of the tree.
|
|
|
|
dependencies {
|
|
compile project(':core')
|
|
compile project(':node-api')
|
|
|
|
// For caches rather than guava
|
|
compile "com.github.ben-manes.caffeine:caffeine:$caffeine_version"
|
|
|
|
testImplementation "junit:junit:$junit_version"
|
|
|
|
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
|
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
|
|
|
// Unit testing helpers.
|
|
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
|
testCompile "org.assertj:assertj-core:${assertj_version}"
|
|
|
|
testCompile project(':node-driver')
|
|
testCompile project(':client:mock')
|
|
integrationTestCompile project(path: ':node-api', configuration: 'testArtifacts')
|
|
|
|
// Smoke tests do NOT have any Node code on the classpath!
|
|
smokeTestCompile project(':smoke-test-utils')
|
|
smokeTestCompile project(':finance:contracts')
|
|
smokeTestCompile project(':finance:workflows')
|
|
smokeTestCompile "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
|
|
smokeTestCompile "org.apache.logging.log4j:log4j-core:$log4j_version"
|
|
smokeTestCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
|
smokeTestCompile "org.assertj:assertj-core:${assertj_version}"
|
|
smokeTestImplementation "junit:junit:$junit_version"
|
|
smokeTestRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
|
smokeTestRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
|
|
|
// JDK11: required by Quasar at run-time
|
|
smokeTestRuntimeOnly "com.esotericsoftware:kryo:$kryo_version"
|
|
}
|
|
|
|
task integrationTest(type: Test) {
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
}
|
|
|
|
task smokeTest(type: Test) {
|
|
testClassesDirs = sourceSets.smokeTest.output.classesDirs
|
|
classpath = sourceSets.smokeTest.runtimeClasspath
|
|
}
|
|
|
|
jar {
|
|
baseName 'corda-rpc'
|
|
manifest {
|
|
attributes 'Automatic-Module-Name': 'net.corda.client.rpc'
|
|
}
|
|
}
|
|
|
|
publish {
|
|
name jar.baseName
|
|
}
|