2018-03-07 09:57:32 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
2018-04-03 09:21:42 +00:00
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
2018-04-05 10:53:12 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2018-03-07 09:57:32 +00:00
|
|
|
|
|
|
|
description 'Corda Shell'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
integrationTest {
|
|
|
|
kotlin {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/kotlin')
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir file('src/integration-test/resources')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
test {
|
|
|
|
resources {
|
|
|
|
srcDir file('src/test/resources')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
|
|
|
|
|
|
|
compile project(':node-api')
|
|
|
|
compile project(':client:rpc')
|
|
|
|
|
2018-06-04 22:24:36 +00:00
|
|
|
// Jackson support: serialisation to/from JSON, YAML, etc.
|
2018-03-07 09:57:32 +00:00
|
|
|
compile project(':client:jackson')
|
|
|
|
|
|
|
|
// CRaSH: An embeddable monitoring and admin shell with support for adding new commands written in Groovy.
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
// JAnsi: for drawing things to the terminal in nicely coloured ways.
|
|
|
|
compile "org.fusesource.jansi:jansi:$jansi_version"
|
|
|
|
|
2018-06-04 22:24:36 +00:00
|
|
|
// Manifests: for reading stuff from the manifest file.
|
2018-03-07 09:57:32 +00:00
|
|
|
compile "com.jcabi:jcabi-manifests:1.1"
|
2018-06-04 22:24:36 +00:00
|
|
|
|
2018-06-29 11:03:18 +00:00
|
|
|
// For logging, required for ANSIProgressRenderer.
|
2018-09-07 13:26:35 +00:00
|
|
|
compile "org.apache.logging.log4j:log4j-core:$log4j_version"
|
2018-03-07 09:57:32 +00:00
|
|
|
|
|
|
|
// Unit testing helpers.
|
|
|
|
testCompile "junit:junit:$junit_version"
|
2018-09-07 13:26:35 +00:00
|
|
|
testCompile "org.assertj:assertj-core:$assertj_version"
|
2018-03-07 09:57:32 +00:00
|
|
|
testCompile project(':test-utils')
|
2018-12-19 18:02:51 +00:00
|
|
|
testCompile project(':finance:contracts')
|
|
|
|
testCompile project(':finance:workflows')
|
2018-03-07 09:57:32 +00:00
|
|
|
|
2018-06-04 22:24:36 +00:00
|
|
|
// Jsh: Testing SSH server.
|
2018-03-07 09:57:32 +00:00
|
|
|
integrationTestCompile "com.jcraft:jsch:$jsch_version"
|
|
|
|
|
|
|
|
integrationTestCompile project(':node-driver')
|
|
|
|
}
|
|
|
|
|
2018-09-07 13:26:35 +00:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
// Resolves a Gradle warning about not scanning for pre-processors.
|
|
|
|
options.compilerArgs << '-proc:none'
|
|
|
|
}
|
|
|
|
|
2018-03-07 09:57:32 +00:00
|
|
|
task integrationTest(type: Test) {
|
|
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
}
|
2018-04-03 09:21:42 +00:00
|
|
|
|
2018-06-21 09:32:36 +00:00
|
|
|
jar {
|
|
|
|
baseName 'corda-shell'
|
|
|
|
}
|
|
|
|
|
2018-04-03 09:21:42 +00:00
|
|
|
publish {
|
|
|
|
name jar.baseName
|
2018-06-04 22:24:36 +00:00
|
|
|
}
|