corda/tools/shell-cli/build.gradle

56 lines
1.2 KiB
Groovy
Raw Normal View History

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