mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
79 lines
2.4 KiB
Groovy
79 lines
2.4 KiB
Groovy
buildscript {
|
|
ext {
|
|
springBootVersion = '1.5.7.RELEASE'
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
|
|
classpath "io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE"
|
|
}
|
|
}
|
|
|
|
// 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"
|
|
ext['jackson.version'] = "$jackson_version"
|
|
ext['dropwizard-metrics.version'] = "$metrics_version"
|
|
|
|
|
|
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'
|
|
)
|
|
}
|
|
}
|