2017-10-25 15:40:21 +00:00
|
|
|
buildscript {
|
|
|
|
ext {
|
|
|
|
springBootVersion = '1.5.7.RELEASE'
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2018-02-07 12:16:16 +00:00
|
|
|
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
|
|
|
|
classpath "io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE"
|
2017-10-25 15:40:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-06 14:34:09 +00:00
|
|
|
// Spring Boot plugin adds a numerous hardcoded dependencies in the version much lower then Corda expects
|
|
|
|
// causing the problems in runtime. Those can be changed by manipulating above properties
|
|
|
|
// See https://github.com/spring-gradle-plugins/dependency-management-plugin/blob/master/README.md#changing-the-value-of-a-version-property
|
|
|
|
// This has to be repeated here as otherwise the order of files does matter
|
|
|
|
ext['artemis.version'] = "$artemis_version"
|
|
|
|
ext['hibernate.version'] = "$hibernate_version"
|
2018-02-07 12:16:16 +00:00
|
|
|
ext['jackson.version'] = "$jackson_version"
|
2018-04-13 14:17:20 +00:00
|
|
|
ext['dropwizard-metrics.version'] = "$metrics_version"
|
2017-11-06 14:34:09 +00:00
|
|
|
|
|
|
|
|
2016-11-17 11:03:40 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'idea'
|
2016-11-17 16:27:39 +00:00
|
|
|
apply plugin: 'application'
|
2017-10-25 15:40:21 +00:00
|
|
|
apply plugin: 'org.springframework.boot'
|
2016-11-17 11:03:40 +00:00
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
|
|
apply plugin: 'us.kirchmeier.capsule'
|
|
|
|
|
2017-10-25 15:40:21 +00:00
|
|
|
// Spring Boot plugin have to be reimported, however it picks up the settings from irs-demo, so there is no need to
|
|
|
|
// reconfigure
|
|
|
|
|
2017-10-03 16:32:11 +00:00
|
|
|
// Warning: The network visualiser is not a Cordapp so please do not use it as an example of how
|
|
|
|
// to build a cordapp
|
2016-11-17 11:03:40 +00:00
|
|
|
|
2017-10-03 16:32:11 +00:00
|
|
|
dependencies {
|
2017-01-03 14:15:23 +00:00
|
|
|
testCompile "junit:junit:$junit_version"
|
2016-11-17 11:03:40 +00:00
|
|
|
|
|
|
|
// Corda integration dependencies
|
2017-06-02 15:23:05 +00:00
|
|
|
compile project(path: ":node:capsule", configuration: 'runtimeArtifacts')
|
|
|
|
compile project(path: ":webserver:webcapsule", configuration: 'runtimeArtifacts')
|
2016-11-17 15:33:06 +00:00
|
|
|
compile project(':core')
|
|
|
|
compile project(':finance')
|
2017-10-03 16:32:11 +00:00
|
|
|
compile project(':node-driver')
|
|
|
|
compile project(':finance')
|
|
|
|
compile project(':samples:irs-demo')
|
2016-11-17 11:03:40 +00:00
|
|
|
|
|
|
|
// GraphStream: For visualisation
|
2017-09-01 10:12:04 +00:00
|
|
|
compileOnly "co.paralleluniverse:capsule:$capsule_version"
|
2016-11-17 11:03:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
downloadJavadoc = true // defaults to false
|
|
|
|
downloadSources = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-17 16:27:39 +00:00
|
|
|
mainClassName = 'net.corda.netmap.NetworkMapVisualiser'
|
|
|
|
|
2016-11-17 11:03:40 +00:00
|
|
|
task deployVisualiser(type: FatCapsule) {
|
2016-11-17 16:27:39 +00:00
|
|
|
applicationClass 'net.corda.netmap.NetworkMapVisualiser'
|
2016-11-17 11:03:40 +00:00
|
|
|
reallyExecutable
|
|
|
|
capsuleManifest {
|
|
|
|
minJavaVersion = '1.8.0'
|
|
|
|
javaAgents = [configurations.quasar.singleFile.name]
|
|
|
|
}
|
2017-01-03 14:15:23 +00:00
|
|
|
}
|
2017-10-06 14:37:33 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Automatic-Module-Name': 'net.corda.samples.network.visualiser'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|