2019-09-20 14:10:15 +00:00
|
|
|
// JDK 11 JavaFX
|
|
|
|
plugins {
|
|
|
|
id 'org.openjfx.javafxplugin' version '0.0.7' apply false
|
|
|
|
}
|
|
|
|
|
|
|
|
if (JavaVersion.current().isJava9Compatible()) {
|
|
|
|
apply plugin: 'org.openjfx.javafxplugin'
|
|
|
|
javafx {
|
|
|
|
version = "11.0.2"
|
|
|
|
modules = ['javafx.controls',
|
|
|
|
'javafx.fxml',
|
|
|
|
'javafx.swing'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
|
|
dependencies {
|
2018-04-24 13:03:41 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2019-05-15 15:40:12 +00:00
|
|
|
|
2019-05-20 10:57:56 +00:00
|
|
|
testImplementation "junit:junit:$junit_version"
|
2019-05-15 15:40:12 +00:00
|
|
|
|
2019-05-20 10:57:56 +00:00
|
|
|
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
2019-05-15 15:40:12 +00:00
|
|
|
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
2019-05-20 10:57:56 +00:00
|
|
|
|
2017-03-22 15:52:54 +00:00
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_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')
|
2018-12-19 18:02:51 +00:00
|
|
|
compile project(':finance:contracts')
|
|
|
|
compile project(':finance:workflows')
|
2019-02-05 15:29:26 +00:00
|
|
|
compile project(':tools:worldmap')
|
2019-04-09 19:14:37 +00:00
|
|
|
compile project(':common-logging')
|
2016-08-30 13:16:28 +00:00
|
|
|
|
2019-02-25 18:11:06 +00:00
|
|
|
// Log4J: logging framework (with SLF4J bindings)
|
|
|
|
compile "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
|
|
|
|
|
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.
|
2019-06-20 15:19:16 +00:00
|
|
|
compile "de.jensd:fontawesomefx-fontawesome:$fontawesomefx_fontawesome_version"
|
|
|
|
compile "de.jensd:fontawesomefx-commons:$fontawesomefx_commons_version"
|
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'
|
|
|
|
|
2019-06-20 15:19:16 +00:00
|
|
|
compile 'org.jfxtras:jfxtras-font-roboto:8.0-r6'
|
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/
|
2019-06-20 15:19:16 +00:00
|
|
|
compile "org.controlsfx:controlsfx:$controlsfx_version"
|
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
|
|
|
|
2020-07-07 08:08:58 +00:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
2018-09-13 09:55:52 +00:00
|
|
|
// Resolves a Gradle warning about not scanning for pre-processors.
|
|
|
|
options.compilerArgs << '-proc:none'
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:37:33 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
2019-02-25 18:11:06 +00:00
|
|
|
'Automatic-Module-Name': 'net.corda.tools.explorer'
|
2017-10-06 14:37:33 +00:00
|
|
|
)
|
|
|
|
}
|
2020-07-07 08:08:58 +00:00
|
|
|
}
|