2016-08-30 13:16:28 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'application'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
2016-11-10 13:14:38 +00:00
|
|
|
mainClassName = 'net.corda.explorer.Main'
|
2016-08-30 13:16:28 +00:00
|
|
|
|
2017-05-05 12:12:36 +00:00
|
|
|
// Use manual resource copying of log4j2.xml rather than source sets.
|
|
|
|
// This prevents problems in IntelliJ with regard to duplicate source roots.
|
|
|
|
processResources {
|
|
|
|
from file("$rootDir/config/dev/log4j2.xml")
|
|
|
|
}
|
|
|
|
|
2016-08-30 13:16:28 +00:00
|
|
|
dependencies {
|
2018-04-24 13:03:41 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2017-03-22 15:52:54 +00:00
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
2017-01-03 14:15:23 +00:00
|
|
|
testCompile "junit:junit:$junit_version"
|
2016-08-30 13:16:28 +00:00
|
|
|
|
|
|
|
// TornadoFX: A lightweight Kotlin framework for working with JavaFX UI's.
|
2017-01-03 14:15:23 +00:00
|
|
|
compile 'no.tornado:tornadofx:1.5.9'
|
2016-08-30 13:16:28 +00:00
|
|
|
|
|
|
|
// Corda Core: Data structures and basic types needed to work with Corda.
|
|
|
|
compile project(':core')
|
2017-03-21 19:45:12 +00:00
|
|
|
compile project(':client:jfx')
|
|
|
|
compile project(':client:mock')
|
2017-09-05 08:50:51 +00:00
|
|
|
compile project(':node-driver')
|
2016-11-04 10:28:42 +00:00
|
|
|
compile project(':finance')
|
2016-08-30 13:16:28 +00:00
|
|
|
|
2017-05-24 08:58:33 +00:00
|
|
|
// Capsule is a library for building independently executable fat JARs.
|
|
|
|
// We only need this dependency to compile our Caplet against.
|
|
|
|
compileOnly "co.paralleluniverse:capsule:$capsule_version"
|
|
|
|
|
2016-08-30 13:16:28 +00:00
|
|
|
// FontAwesomeFX: The "FontAwesome" icon library.
|
2017-01-03 14:15:23 +00:00
|
|
|
compile 'de.jensd:fontawesomefx-fontawesome:4.7.0'
|
2016-08-30 13:16:28 +00:00
|
|
|
|
|
|
|
// ReactFX: Functional reactive UI programming.
|
|
|
|
compile 'org.reactfx:reactfx:2.0-M5'
|
|
|
|
compile 'org.fxmisc.easybind:easybind:1.0.3'
|
|
|
|
|
|
|
|
// JFXtras: useful widgets including a calendar control.
|
|
|
|
compile 'org.jfxtras:jfxtras-agenda:8.0-r5'
|
|
|
|
compile 'org.jfxtras:jfxtras-font-roboto:8.0-r5'
|
2016-09-16 15:00:24 +00:00
|
|
|
|
|
|
|
// Humanize: formatting
|
|
|
|
compile 'com.github.mfornos:humanize-icu:1.2.2'
|
2016-10-18 23:47:15 +00:00
|
|
|
|
|
|
|
// Controls FX: more java FX components http://fxexperience.com/controlsfx/
|
|
|
|
compile 'org.controlsfx:controlsfx:8.40.12'
|
2016-11-11 09:31:52 +00:00
|
|
|
// This provide com.apple.eawt stub for non-mac system.
|
|
|
|
compile 'com.yuvimasory:orange-extensions:1.3.0'
|
2018-10-30 14:01:20 +00:00
|
|
|
|
|
|
|
// JOpt: for command line flags.
|
|
|
|
compile "net.sf.jopt-simple:jopt-simple:$jopt_simple_version"
|
2016-08-30 13:16:28 +00:00
|
|
|
}
|
2016-10-18 23:47:15 +00:00
|
|
|
|
2018-09-13 09:55:52 +00:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
// Resolves a Gradle warning about not scanning for pre-processors.
|
|
|
|
options.compilerArgs << '-proc:none'
|
|
|
|
}
|
|
|
|
|
2018-06-27 11:52:36 +00:00
|
|
|
task runDemoNodes(dependsOn: 'classes', type: JavaExec) {
|
2016-11-10 13:14:38 +00:00
|
|
|
main = 'net.corda.explorer.MainKt'
|
2016-10-18 23:47:15 +00:00
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
2016-11-03 09:49:05 +00:00
|
|
|
}
|
2016-12-06 16:16:47 +00:00
|
|
|
|
2018-06-27 11:52:36 +00:00
|
|
|
task runSimulationNodes(dependsOn: 'classes', type: JavaExec) {
|
2016-12-06 16:16:47 +00:00
|
|
|
main = 'net.corda.explorer.MainKt'
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
args '-S'
|
2017-01-03 14:15:23 +00:00
|
|
|
}
|
2017-10-06 14:37:33 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Automatic-Module-Name': 'net.corda.tools.explorer'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|