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'
|
2017-09-29 15:55:26 +00:00
|
|
|
apply plugin: 'net.corda.plugins.api-scanner'
|
2017-06-26 17:07:56 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2017-03-22 15:52:54 +00:00
|
|
|
|
|
|
|
description 'Corda client RPC modules'
|
|
|
|
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
|
configurations {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-02-20 13:25:34 +00:00
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
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-07-17 17:20:02 +00:00
|
|
|
java {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/java')
|
|
|
|
}
|
2017-03-22 15:52:54 +00:00
|
|
|
}
|
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')
|
|
|
|
}
|
2017-07-17 17:20:02 +00:00
|
|
|
java {
|
|
|
|
compileClasspath += main.output
|
|
|
|
runtimeClasspath += main.output
|
|
|
|
srcDir file('src/smoke-test/java')
|
|
|
|
}
|
2017-05-12 09:27:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
processSmokeTestResources {
|
2017-06-30 13:18:46 +00:00
|
|
|
from(project(':node:capsule').tasks['buildCordaJAR']) {
|
2017-05-12 09:27:41 +00:00
|
|
|
rename 'corda-(.*)', 'corda.jar'
|
|
|
|
}
|
2017-08-15 08:14:15 +00:00
|
|
|
from(project(':finance').tasks['jar']) {
|
|
|
|
rename 'finance-(.*)', 'finance.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')
|
|
|
|
|
2018-03-14 16:07:31 +00:00
|
|
|
// For caches rather than guava
|
|
|
|
compile "com.github.ben-manes.caffeine:caffeine:$caffeine_version"
|
|
|
|
|
2017-03-22 15:52:54 +00:00
|
|
|
// Unit testing helpers.
|
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
|
|
|
testCompile "junit:junit:$junit_version"
|
|
|
|
testCompile "org.assertj:assertj-core:${assertj_version}"
|
|
|
|
|
2017-09-05 08:50:51 +00:00
|
|
|
testCompile project(':node-driver')
|
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!
|
2017-06-02 14:47:20 +00:00
|
|
|
smokeTestCompile project(':smoke-test-utils')
|
2017-05-12 09:27:41 +00:00
|
|
|
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) {
|
2017-08-24 15:46:54 +00:00
|
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
2017-03-22 15:52:54 +00:00
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
}
|
2017-05-12 09:27:41 +00:00
|
|
|
|
|
|
|
task smokeTest(type: Test) {
|
2017-08-24 15:46:54 +00:00
|
|
|
testClassesDirs = sourceSets.smokeTest.output.classesDirs
|
2017-05-12 09:27:41 +00:00
|
|
|
classpath = sourceSets.smokeTest.runtimeClasspath
|
|
|
|
}
|
2017-06-06 14:05:47 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName 'corda-rpc'
|
2017-10-06 14:37:33 +00:00
|
|
|
manifest {
|
|
|
|
attributes 'Automatic-Module-Name': 'net.corda.client.rpc'
|
|
|
|
}
|
2017-06-06 14:05:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
2017-07-18 11:34:56 +00:00
|
|
|
name jar.baseName
|
2017-06-28 08:54:09 +00:00
|
|
|
}
|