2018-06-29 09:32:37 +00:00
|
|
|
description 'Corda Shell CLI'
|
2018-06-21 09:32:36 +00:00
|
|
|
|
2018-06-29 09:32:37 +00:00
|
|
|
buildscript {
|
2018-06-21 09:32:36 +00:00
|
|
|
repositories {
|
2018-06-29 09:32:37 +00:00
|
|
|
maven {
|
|
|
|
url "https://plugins.gradle.org/m2/"
|
|
|
|
}
|
2018-06-21 09:32:36 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-06-29 09:32:37 +00:00
|
|
|
classpath "com.github.jengelman.gradle.plugins:shadow:$shadow_version"
|
|
|
|
classpath 'de.sebastianboegl.gradle.plugins:shadow-log4j-transformer:2.1.1'
|
2018-06-21 09:32:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'application'
|
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'
|
|
|
|
|
2018-06-29 09:32:37 +00:00
|
|
|
mainClassName = 'net.corda.tools.shell.StandaloneShellKt'
|
2018-06-21 09:32:36 +00:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':tools:shell')
|
2018-06-29 09:32:37 +00:00
|
|
|
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
|
2018-06-21 09:32:36 +00:00
|
|
|
|
|
|
|
testCompile project(':test-utils')
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
from file("$rootDir/config/dev/log4j2.xml")
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
//transform(de.sebastianboegl.gradle.plugins.shadow.transformers.Log4j2PluginsFileTransformer)
|
2018-06-29 09:32:37 +00:00
|
|
|
archiveName = "shell-cli-${version}.jar"
|
2018-06-21 09:32:36 +00:00
|
|
|
|
|
|
|
mergeServiceFiles()
|
|
|
|
}
|
|
|
|
|
|
|
|
task buildShellCli(dependsOn: shadowJar)
|
2018-06-29 09:32:37 +00:00
|
|
|
|
|
|
|
artifacts {
|
|
|
|
publish shadowJar {
|
|
|
|
classifier ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
classifier "ignore"
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
name 'corda-tools-shell-cli'
|
|
|
|
disableDefaultJar = true
|
|
|
|
}
|