corda/samples/network-visualiser/build.gradle
Maksymilian Pawlak 44a7d872d8 IRS Demo - split IRS Demo into two separate applications to showcase … (#1638)
* IRS Demo - split IRS Demo into two separate applications to showcase the separation and usage of RPC client
2017-10-25 16:40:21 +01:00

68 lines
1.8 KiB
Groovy

buildscript {
ext {
springBootVersion = '1.5.7.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'application'
apply plugin: 'org.springframework.boot'
apply plugin: 'net.corda.plugins.quasar-utils'
apply plugin: 'us.kirchmeier.capsule'
// Spring Boot plugin have to be reimported, however it picks up the settings from irs-demo, so there is no need to
// reconfigure
// Warning: The network visualiser is not a Cordapp so please do not use it as an example of how
// to build a cordapp
dependencies {
testCompile "junit:junit:$junit_version"
// Corda integration dependencies
compile project(path: ":node:capsule", configuration: 'runtimeArtifacts')
compile project(path: ":webserver:webcapsule", configuration: 'runtimeArtifacts')
compile project(':core')
compile project(':finance')
compile project(':node-driver')
compile project(':finance')
compile project(':samples:irs-demo')
// GraphStream: For visualisation
compileOnly "co.paralleluniverse:capsule:$capsule_version"
}
idea {
module {
downloadJavadoc = true // defaults to false
downloadSources = true
}
}
mainClassName = 'net.corda.netmap.NetworkMapVisualiser'
task deployVisualiser(type: FatCapsule) {
applicationClass 'net.corda.netmap.NetworkMapVisualiser'
reallyExecutable
capsuleManifest {
minJavaVersion = '1.8.0'
javaAgents = [configurations.quasar.singleFile.name]
}
}
jar {
manifest {
attributes(
'Automatic-Module-Name': 'net.corda.samples.network.visualiser'
)
}
}