2016-11-16 10:18:00 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
ext.asm_version = '5.1'
|
2017-04-24 19:30:21 +00:00
|
|
|
ext.logback_version = '1.2.3'
|
2016-11-16 10:18:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Asm: bytecode manipulation library.
|
|
|
|
compile "org.ow2.asm:asm:$asm_version"
|
|
|
|
compile "org.ow2.asm:asm-tree:$asm_version"
|
|
|
|
compile "org.ow2.asm:asm-util:$asm_version"
|
|
|
|
compile "org.ow2.asm:asm-commons:$asm_version"
|
|
|
|
|
|
|
|
// JOptSimple: command line option parsing
|
2017-01-03 14:15:23 +00:00
|
|
|
compile "net.sf.jopt-simple:jopt-simple:$jopt_simple_version"
|
2016-11-16 10:18:00 +00:00
|
|
|
|
|
|
|
// Simple Logging Facade: makes the code independent of the chosen logging framework.
|
2017-04-24 19:30:21 +00:00
|
|
|
compile "org.slf4j:slf4j-api:$slf4j_version"
|
|
|
|
compile "ch.qos.logback:logback-classic:$logback_version"
|
2016-11-16 10:18:00 +00:00
|
|
|
|
2017-01-03 14:15:23 +00:00
|
|
|
testCompile "junit:junit:$junit_version"
|
2016-11-16 10:18:00 +00:00
|
|
|
}
|
2017-04-24 19:30:21 +00:00
|
|
|
|
|
|
|
task standaloneJar(type: Jar) {
|
|
|
|
// Create a fat jar by packing all deps into the output
|
|
|
|
from {
|
|
|
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
|
|
}
|
|
|
|
with jar
|
|
|
|
manifest {
|
2017-10-06 14:37:33 +00:00
|
|
|
attributes(
|
|
|
|
'Main-Class': 'net.corda.sandbox.tools.SandboxCreator',
|
|
|
|
'Automatic-Module-Name': 'net.corda.sandbox.creator'
|
|
|
|
)
|
2017-04-24 19:30:21 +00:00
|
|
|
}
|
|
|
|
archiveName "corda-sandbox-creator-${version}.jar"
|
|
|
|
}
|