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-07 13:26:35 +00:00
|
|
|
compile "org.slf4j:slf4j-simple:$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-06-21 09:32:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
from file("$rootDir/config/dev/log4j2.xml")
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
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 {
|
2018-09-07 13:26:35 +00:00
|
|
|
classifier = ""
|
2018-06-29 09:32:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
classifier "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
|
|
|
}
|