2019-09-18 09:26:26 +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'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-13 09:55:52 +00:00
|
|
|
ext {
|
|
|
|
tornadofx_version = '1.7.15'
|
2018-06-12 12:59:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'application'
|
2018-09-13 09:55:52 +00:00
|
|
|
// We need to set mainClassName before applying the shadow plugin.
|
2019-07-02 10:32:48 +00:00
|
|
|
mainClassName = 'net.corda.networkbuilder.Main'
|
2018-09-13 09:55:52 +00:00
|
|
|
|
2018-06-12 12:59:27 +00:00
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
2019-07-02 10:32:48 +00:00
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2018-06-12 12:59:27 +00:00
|
|
|
|
2018-09-13 09:55:52 +00:00
|
|
|
configurations {
|
|
|
|
compile {
|
|
|
|
exclude group: "log4j", module: "log4j"
|
|
|
|
exclude group: "org.apache.logging.log4j"
|
2018-10-05 10:01:27 +00:00
|
|
|
|
|
|
|
// The Node only needs this for binary compatibility with Cordapps written in Kotlin 1.1.
|
|
|
|
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jre8'
|
2018-09-13 09:55:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-12 12:59:27 +00:00
|
|
|
dependencies {
|
2019-06-20 15:19:16 +00:00
|
|
|
compile "com.microsoft.azure:azure:1.22.0"
|
2018-06-12 12:59:27 +00:00
|
|
|
compile "com.github.docker-java:docker-java:3.0.6"
|
|
|
|
|
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-test"
|
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-test-junit"
|
|
|
|
|
|
|
|
compile project(':node-api')
|
|
|
|
compile project(':node')
|
|
|
|
|
2018-07-20 13:42:40 +00:00
|
|
|
compile "com.typesafe:config:$typesafe_config_version"
|
|
|
|
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jackson_version"
|
|
|
|
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
|
|
|
|
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version"
|
2018-09-13 09:55:52 +00:00
|
|
|
compile "info.picocli:picocli:$picocli_version"
|
2018-06-12 12:59:27 +00:00
|
|
|
|
|
|
|
// TornadoFX: A lightweight Kotlin framework for working with JavaFX UI's.
|
|
|
|
compile "no.tornado:tornadofx:$tornadofx_version"
|
|
|
|
|
2018-06-28 11:05:36 +00:00
|
|
|
// ControlsFX: Extra controls for JavaFX.
|
2018-06-12 12:59:27 +00:00
|
|
|
compile "org.controlsfx:controlsfx:$controlsfx_version"
|
|
|
|
}
|
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
|
2019-07-02 10:32:48 +00:00
|
|
|
processResources {
|
|
|
|
from file("$rootDir/config/dev/log4j2.xml")
|
|
|
|
}
|
2018-09-13 09:55:52 +00:00
|
|
|
|
2018-06-12 12:59:27 +00:00
|
|
|
shadowJar {
|
2019-07-02 10:32:48 +00:00
|
|
|
baseName = 'network-builder'
|
2019-10-08 09:45:10 +00:00
|
|
|
archiveClassifier = jdkClassifier
|
2018-06-12 12:59:27 +00:00
|
|
|
version = null
|
|
|
|
zip64 true
|
|
|
|
}
|
|
|
|
|
2019-07-02 10:32:48 +00:00
|
|
|
task buildNetworkBuilder(dependsOn: shadowJar)
|
|
|
|
assemble.dependsOn buildNetworkBuilder
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
publish shadowJar {
|
2019-10-08 09:45:10 +00:00
|
|
|
archiveClassifier = jdkClassifier
|
2019-07-02 10:32:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
disableDefaultJar = true
|
|
|
|
name 'corda-tools-network-builder'
|
|
|
|
}
|