mirror of
https://github.com/corda/corda.git
synced 2024-12-23 23:02:29 +00:00
0b35a99c5a
[CORDA-682] Specify Jigsaw module names for all JAR projects.
40 lines
1.2 KiB
Groovy
40 lines
1.2 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'kotlin'
|
|
|
|
buildscript {
|
|
ext.asm_version = '5.1'
|
|
ext.logback_version = '1.2.3'
|
|
}
|
|
|
|
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
|
|
compile "net.sf.jopt-simple:jopt-simple:$jopt_simple_version"
|
|
|
|
// Simple Logging Facade: makes the code independent of the chosen logging framework.
|
|
compile "org.slf4j:slf4j-api:$slf4j_version"
|
|
compile "ch.qos.logback:logback-classic:$logback_version"
|
|
|
|
testCompile "junit:junit:$junit_version"
|
|
}
|
|
|
|
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 {
|
|
attributes(
|
|
'Main-Class': 'net.corda.sandbox.tools.SandboxCreator',
|
|
'Automatic-Module-Name': 'net.corda.sandbox.creator'
|
|
)
|
|
}
|
|
archiveName "corda-sandbox-creator-${version}.jar"
|
|
}
|