2017-05-16 10:30:50 +00:00
|
|
|
import net.corda.plugins.Cordform
|
|
|
|
|
2016-11-22 18:09:56 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
apply plugin: 'net.corda.plugins.cordformation'
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2017-03-30 15:27:01 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
|
2017-01-03 14:15:23 +00:00
|
|
|
testCompile "junit:junit:$junit_version"
|
2016-11-22 18:09:56 +00:00
|
|
|
|
|
|
|
// Corda integration dependencies
|
2017-07-27 16:53:51 +00:00
|
|
|
cordaCompile project(path: ":node:capsule", configuration: 'runtimeArtifacts')
|
|
|
|
cordaCompile project(path: ":webserver:webcapsule", configuration: 'runtimeArtifacts')
|
|
|
|
cordaCompile project(':core')
|
|
|
|
cordaCompile project(':client:jfx')
|
|
|
|
cordaCompile project(':client:rpc')
|
|
|
|
cordaCompile project(':test-utils')
|
|
|
|
cordaCompile project(':cordform-common')
|
2016-11-22 18:09:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
downloadJavadoc = true // defaults to false
|
|
|
|
downloadSources = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
jarAndSources(MavenPublication) {
|
|
|
|
from components.java
|
2017-05-24 11:25:06 +00:00
|
|
|
artifactId 'notarydemo'
|
2016-11-22 18:09:56 +00:00
|
|
|
|
|
|
|
artifact sourceJar
|
|
|
|
artifact javadocJar
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-31 10:14:53 +00:00
|
|
|
task deployNodes(dependsOn: ['deployNodesSingle', 'deployNodesRaft', 'deployNodesBFT'])
|
|
|
|
|
2017-05-18 14:58:35 +00:00
|
|
|
task deployNodesSingle(type: Cordform, dependsOn: 'jar') {
|
2017-05-31 10:14:53 +00:00
|
|
|
directory "./build/nodes/nodesSingle"
|
2017-05-18 14:58:35 +00:00
|
|
|
definitionClass = 'net.corda.notarydemo.SingleNotaryCordform'
|
2016-11-22 18:09:56 +00:00
|
|
|
}
|
|
|
|
|
2017-05-18 14:58:35 +00:00
|
|
|
task deployNodesRaft(type: Cordform, dependsOn: 'jar') {
|
2017-05-31 10:14:53 +00:00
|
|
|
directory "./build/nodes/nodesRaft"
|
2017-05-18 14:58:35 +00:00
|
|
|
definitionClass = 'net.corda.notarydemo.RaftNotaryCordform'
|
2016-11-22 18:09:56 +00:00
|
|
|
}
|
|
|
|
|
2017-05-24 11:25:06 +00:00
|
|
|
task deployNodesBFT(type: Cordform, dependsOn: 'jar') {
|
2017-05-31 10:14:53 +00:00
|
|
|
directory "./build/nodes/nodesBFT"
|
2017-05-24 11:25:06 +00:00
|
|
|
definitionClass = 'net.corda.notarydemo.BFTNotaryCordform'
|
|
|
|
}
|
|
|
|
|
2016-11-22 18:09:56 +00:00
|
|
|
task notarise(type: JavaExec) {
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
2017-05-18 14:58:35 +00:00
|
|
|
main = 'net.corda.notarydemo.NotariseKt'
|
2016-11-22 18:09:56 +00:00
|
|
|
}
|