2018-07-04 14:42:43 +00:00
|
|
|
ext {
|
|
|
|
commonsio_version = '2.6'
|
|
|
|
cucumber_version = '1.2.5'
|
|
|
|
crash_version = 'cce5a00f114343c1145c1d7756e1dd6df3ea984e'
|
|
|
|
docker_client_version = '8.11.0'
|
2018-02-01 16:06:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group 'net.corda.behave'
|
|
|
|
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
|
|
|
|
sourceSets {
|
2018-04-26 15:13:34 +00:00
|
|
|
behave {
|
2018-02-01 16:06:12 +00:00
|
|
|
java {
|
|
|
|
compileClasspath += main.output
|
|
|
|
runtimeClasspath += main.output
|
2018-04-26 15:13:34 +00:00
|
|
|
srcDirs = ["src/main/kotlin", "src/scenario/kotlin"]
|
2018-02-01 16:06:12 +00:00
|
|
|
}
|
|
|
|
resources.srcDir file('src/scenario/resources')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
2018-04-26 15:13:34 +00:00
|
|
|
behaveCompile.extendsFrom testCompile
|
|
|
|
behaveRuntime.extendsFrom testRuntime
|
2018-02-01 16:06:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
// Library
|
|
|
|
|
2018-04-24 13:03:41 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2018-02-01 16:06:12 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
|
|
|
|
|
|
compile("com.github.corda.crash:crash.shell:$crash_version") {
|
|
|
|
exclude group: "org.slf4j", module: "slf4j-jdk14"
|
|
|
|
exclude group: "org.bouncycastle"
|
|
|
|
}
|
|
|
|
|
|
|
|
compile("com.github.corda.crash:crash.connectors.ssh:$crash_version") {
|
|
|
|
exclude group: "org.slf4j", module: "slf4j-jdk14"
|
|
|
|
exclude group: "org.bouncycastle"
|
|
|
|
}
|
|
|
|
|
2018-02-09 12:58:38 +00:00
|
|
|
compile "org.slf4j:log4j-over-slf4j:$slf4j_version"
|
|
|
|
compile "org.slf4j:jul-to-slf4j:$slf4j_version"
|
2018-07-04 14:42:43 +00:00
|
|
|
compile "org.slf4j:jcl-over-slf4j:$slf4j_version"
|
2018-02-09 12:58:38 +00:00
|
|
|
compile "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
|
|
|
|
compile "org.apache.logging.log4j:log4j-core:$log4j_version"
|
|
|
|
|
Corda Behave extensions for CTS (#2968)
* Updated to Corda 3.0, added support for PostgreSQL, added STAGING_ROOT environment variable, incorporating Watch improvements (Maks), Steps Provider interface for auto-scanning of 3rd party steps providers, re-implemented StepBlocks, new ScenarioRunner executable tool, additional Steps definitions (Vault, issue/transfer cash, cordapps), other minor bug fixes and logging improvements.
* Updates incorporating PR review feedback.
* Reverted back to original - will re-test in ENT.
* Removed all SQL Server code (to be included in ENT only)
* Minor updates following second PR review.
* Fixed broken scenario tests.
* Final fix for PostgreSQL scenario test.
2018-04-19 08:56:16 +00:00
|
|
|
// JOptSimple: command line option parsing
|
|
|
|
compile "net.sf.jopt-simple:jopt-simple:$jopt_simple_version"
|
|
|
|
|
2018-10-11 18:50:26 +00:00
|
|
|
// ClassGraph: classpath scanning
|
|
|
|
compile "io.github.classgraph:classgraph:$class_graph_version"
|
Corda Behave extensions for CTS (#2968)
* Updated to Corda 3.0, added support for PostgreSQL, added STAGING_ROOT environment variable, incorporating Watch improvements (Maks), Steps Provider interface for auto-scanning of 3rd party steps providers, re-implemented StepBlocks, new ScenarioRunner executable tool, additional Steps definitions (Vault, issue/transfer cash, cordapps), other minor bug fixes and logging improvements.
* Updates incorporating PR review feedback.
* Reverted back to original - will re-test in ENT.
* Removed all SQL Server code (to be included in ENT only)
* Minor updates following second PR review.
* Fixed broken scenario tests.
* Final fix for PostgreSQL scenario test.
2018-04-19 08:56:16 +00:00
|
|
|
|
2018-02-09 12:58:38 +00:00
|
|
|
compile "commons-io:commons-io:$commonsio_version"
|
2018-02-01 16:06:12 +00:00
|
|
|
compile "com.spotify:docker-client:$docker_client_version"
|
2018-02-09 12:58:38 +00:00
|
|
|
compile "io.reactivex:rxjava:$rxjava_version"
|
|
|
|
|
2018-12-19 18:02:51 +00:00
|
|
|
compile project(':finance:contracts')
|
|
|
|
compile project(':finance:workflows')
|
2018-02-09 12:58:38 +00:00
|
|
|
compile project(':node-api')
|
|
|
|
compile project(':client:rpc')
|
2018-02-01 16:06:12 +00:00
|
|
|
|
|
|
|
// Unit Tests
|
2019-05-15 15:40:12 +00:00
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
|
2019-05-20 10:57:56 +00:00
|
|
|
testImplementation "junit:junit:$junit_version"
|
2018-02-01 16:06:12 +00:00
|
|
|
|
2019-05-20 10:57:56 +00:00
|
|
|
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
2019-05-15 15:40:12 +00:00
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
|
|
|
|
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
|
|
|
|
2018-02-09 12:58:38 +00:00
|
|
|
testCompile "org.assertj:assertj-core:$assertj_version"
|
2018-02-01 16:06:12 +00:00
|
|
|
|
|
|
|
// Scenarios / End-to-End Tests
|
|
|
|
|
2018-04-26 15:13:34 +00:00
|
|
|
behaveCompile "info.cukes:cucumber-java8:$cucumber_version"
|
|
|
|
behaveCompile "info.cukes:cucumber-junit:$cucumber_version"
|
|
|
|
behaveCompile "info.cukes:cucumber-picocontainer:$cucumber_version"
|
2018-02-01 16:06:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
testLogging.showStandardStreams = true
|
|
|
|
}
|
|
|
|
|
2018-04-26 15:13:34 +00:00
|
|
|
task behaveJar(type: Jar) {
|
|
|
|
baseName "corda-behave"
|
|
|
|
from sourceSets.behave.output
|
|
|
|
from {
|
|
|
|
configurations.behaveCompile.collect {
|
|
|
|
it.isDirectory() ? it : zipTree(it)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
zip64 true
|
|
|
|
exclude("features/**")
|
|
|
|
exclude("scripts/**")
|
|
|
|
exclude("META-INF/*.DSA")
|
|
|
|
exclude("META-INF/*.RSA")
|
|
|
|
exclude("META-INF/*.SF")
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': 'net.corda.behave.scenarios.ScenarioRunner'
|
2018-02-12 10:43:54 +00:00
|
|
|
}
|
2018-02-01 16:06:12 +00:00
|
|
|
}
|