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'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2016-08-26 13:29:25 +00:00
|
|
|
apply plugin: 'kotlin'
|
2016-11-18 14:41:06 +00:00
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
2017-06-26 17:07:56 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2016-08-26 13:29:25 +00:00
|
|
|
|
2017-03-21 19:45:12 +00:00
|
|
|
description 'Corda client JavaFX modules'
|
2016-12-06 10:49:46 +00:00
|
|
|
|
2016-08-26 13:29:25 +00:00
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
|
configurations {
|
2016-09-08 14:28:04 +00:00
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
2016-08-26 13:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
2016-09-08 14:28:04 +00:00
|
|
|
integrationTest {
|
|
|
|
kotlin {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/kotlin')
|
|
|
|
}
|
|
|
|
}
|
2016-08-26 13:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// To find potential version conflicts, run "gradle htmlDependencyReport" and then look in
|
|
|
|
// build/reports/project/dependencies/index.html for green highlighted parts of the tree.
|
|
|
|
|
|
|
|
dependencies {
|
2017-03-22 15:52:54 +00:00
|
|
|
compile project(':core')
|
2018-12-19 18:02:51 +00:00
|
|
|
compile project(':finance:contracts')
|
|
|
|
compile project(':finance:workflows')
|
2017-03-22 15:52:54 +00:00
|
|
|
compile project(':client:rpc')
|
2016-08-26 13:29:25 +00:00
|
|
|
|
2018-04-24 13:03:41 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2017-01-03 14:15:23 +00:00
|
|
|
compile "com.google.guava:guava:$guava_version"
|
2016-08-26 13:29:25 +00:00
|
|
|
|
|
|
|
// ReactFX: Functional reactive UI programming.
|
|
|
|
compile 'org.reactfx:reactfx:2.0-M5'
|
|
|
|
compile 'org.fxmisc.easybind:easybind:1.0.3'
|
|
|
|
|
2016-08-26 13:31:17 +00:00
|
|
|
// Artemis Client: ability to connect to an Artemis broker and control it.
|
2017-10-26 11:16:57 +00:00
|
|
|
// TODO: remove the forced update of commons-collections and beanutils when artemis updates them
|
|
|
|
compile "org.apache.commons:commons-collections4:${commons_collections_version}"
|
|
|
|
compile "commons-beanutils:commons-beanutils:${beanutils_version}"
|
2022-03-04 11:52:14 +00:00
|
|
|
compile("org.apache.activemq:artemis-core-client:${artemis_version}") {
|
|
|
|
exclude group: 'org.jgroups', module: 'jgroups'
|
|
|
|
}
|
2016-08-26 13:31:17 +00:00
|
|
|
|
2016-08-26 13:29:25 +00:00
|
|
|
// Unit testing helpers.
|
2019-05-15 15:40:12 +00:00
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
|
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.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
|
|
|
|
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
2019-05-20 10:57:56 +00:00
|
|
|
|
2016-08-26 13:29:25 +00:00
|
|
|
testCompile "org.assertj:assertj-core:${assertj_version}"
|
2016-09-01 17:36:19 +00:00
|
|
|
|
|
|
|
testCompile project(':test-utils')
|
2016-09-08 14:28:04 +00:00
|
|
|
|
|
|
|
// Integration test helpers
|
2017-01-03 14:15:23 +00:00
|
|
|
integrationTestCompile "junit:junit:$junit_version"
|
2017-09-05 08:50:51 +00:00
|
|
|
integrationTestCompile project(':node-driver')
|
2016-08-26 13:29:25 +00:00
|
|
|
}
|
|
|
|
|
2016-09-08 14:28:04 +00:00
|
|
|
task integrationTest(type: Test) {
|
2017-08-24 15:46:54 +00:00
|
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
2016-09-08 14:28:04 +00:00
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
2017-01-03 14:15:23 +00:00
|
|
|
}
|
2017-06-06 14:05:47 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName 'corda-jfx'
|
2017-10-06 14:37:33 +00:00
|
|
|
manifest {
|
|
|
|
attributes 'Automatic-Module-Name': 'net.corda.client.jfx'
|
|
|
|
}
|
2017-06-06 14:05:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
2017-07-18 11:34:56 +00:00
|
|
|
name jar.baseName
|
2017-09-29 15:55:26 +00:00
|
|
|
}
|