2018-06-29 09:32:37 +00:00
|
|
|
description 'Corda Shell CLI'
|
2018-06-21 09:32:36 +00:00
|
|
|
|
|
|
|
apply plugin: 'application'
|
2018-09-07 13:26:35 +00:00
|
|
|
// We need to set mainClassName before applying the shadow plugin.
|
|
|
|
mainClassName = 'net.corda.tools.shell.StandaloneShellKt'
|
|
|
|
|
2018-06-29 09:32:37 +00:00
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
2018-06-21 09:32:36 +00:00
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':tools:shell')
|
2018-09-13 10:14:31 +00:00
|
|
|
compile project(':tools:cliutils')
|
2019-04-09 19:14:37 +00:00
|
|
|
compile project(":common-logging")
|
2018-09-13 10:14:31 +00:00
|
|
|
compile "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
|
|
|
|
compile "org.slf4j:jul-to-slf4j:$slf4j_version"
|
2018-06-21 09:32:36 +00:00
|
|
|
|
2018-06-29 11:03:18 +00:00
|
|
|
testCompile(project(':test-utils')) {
|
|
|
|
exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl'
|
|
|
|
}
|
2018-09-14 13:37:52 +00:00
|
|
|
|
|
|
|
testCompile(project(':test-cli'))
|
2018-06-21 09:32:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
from file("$rootDir/config/dev/log4j2.xml")
|
|
|
|
}
|
|
|
|
|
2018-09-14 13:37:52 +00:00
|
|
|
shadowJar {
|
2018-06-21 09:32:36 +00:00
|
|
|
mergeServiceFiles()
|
|
|
|
}
|
|
|
|
|
|
|
|
task buildShellCli(dependsOn: shadowJar)
|
2018-09-07 13:26:35 +00:00
|
|
|
assemble.dependsOn buildShellCli
|
2018-06-29 09:32:37 +00:00
|
|
|
|
|
|
|
artifacts {
|
|
|
|
publish shadowJar {
|
2019-10-08 09:45:10 +00:00
|
|
|
archiveClassifier = jdkClassifier
|
2018-06-29 09:32:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
2019-10-08 09:45:10 +00:00
|
|
|
archiveClassifier = "ignore"
|
2018-06-29 11:03:18 +00:00
|
|
|
enabled = false
|
2018-06-29 09:32:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
disableDefaultJar = true
|
2018-06-29 11:03:18 +00:00
|
|
|
name 'corda-tools-shell-cli'
|
2018-06-29 09:32:37 +00:00
|
|
|
}
|