2017-03-22 15:52:54 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
|
|
|
|
description 'Corda client RPC modules'
|
|
|
|
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
|
configurations {
|
|
|
|
// we don't want isolated.jar in classPath, since we want to test jar being dynamically loaded as an attachment
|
|
|
|
runtime.exclude module: 'isolated'
|
|
|
|
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
2017-05-12 09:27:41 +00:00
|
|
|
|
|
|
|
smokeTestCompile.extendsFrom compile
|
|
|
|
smokeTestRuntime.extendsFrom runtime
|
2017-03-22 15:52:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
integrationTest {
|
|
|
|
kotlin {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/kotlin')
|
|
|
|
}
|
|
|
|
}
|
2017-05-12 09:27:41 +00:00
|
|
|
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')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
processSmokeTestResources {
|
|
|
|
from(file("$rootDir/config/test/log4j2.xml")) {
|
|
|
|
rename 'log4j2\\.xml', 'log4j2-test.xml'
|
|
|
|
}
|
|
|
|
from(project(':node:capsule').tasks.buildCordaJAR) {
|
|
|
|
rename 'corda-(.*)', 'corda.jar'
|
|
|
|
}
|
2017-03-22 15:52:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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')
|
|
|
|
|
|
|
|
// Unit testing helpers.
|
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
|
|
|
testCompile "junit:junit:$junit_version"
|
|
|
|
testCompile "org.assertj:assertj-core:${assertj_version}"
|
|
|
|
|
|
|
|
testCompile project(':test-utils')
|
2017-03-29 16:28:02 +00:00
|
|
|
testCompile project(':client:mock')
|
2017-03-22 15:52:54 +00:00
|
|
|
|
2017-05-12 09:27:41 +00:00
|
|
|
// Smoke tests do NOT have any Node code on the classpath!
|
|
|
|
smokeTestCompile project(':finance')
|
|
|
|
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}"
|
|
|
|
smokeTestCompile "junit:junit:$junit_version"
|
2017-03-22 15:52:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task integrationTest(type: Test) {
|
|
|
|
testClassesDir = sourceSets.integrationTest.output.classesDir
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
}
|
2017-05-12 09:27:41 +00:00
|
|
|
|
|
|
|
task smokeTest(type: Test) {
|
|
|
|
testClassesDir = sourceSets.smokeTest.output.classesDir
|
|
|
|
classpath = sourceSets.smokeTest.runtimeClasspath
|
|
|
|
systemProperties['build.dir'] = buildDir
|
|
|
|
}
|