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'
|
2017-10-09 19:08:08 +00:00
|
|
|
apply plugin: 'net.corda.plugins.cordapp'
|
2016-11-22 18:09:56 +00:00
|
|
|
apply plugin: 'net.corda.plugins.cordformation'
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
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
|
|
|
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')
|
2017-09-05 08:50:51 +00:00
|
|
|
cordaCompile project(':node-driver')
|
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-10-13 09:36:25 +00:00
|
|
|
task deployNodes(dependsOn: ['deployNodesSingle', 'deployNodesRaft', 'deployNodesBFT', 'deployNodesCustom'])
|
2017-05-31 10:14:53 +00:00
|
|
|
|
2017-05-18 14:58:35 +00:00
|
|
|
task deployNodesSingle(type: Cordform, dependsOn: 'jar') {
|
|
|
|
definitionClass = 'net.corda.notarydemo.SingleNotaryCordform'
|
2016-11-22 18:09:56 +00:00
|
|
|
}
|
|
|
|
|
2017-10-13 09:36:25 +00:00
|
|
|
task deployNodesCustom(type: Cordform, dependsOn: 'jar') {
|
|
|
|
definitionClass = 'net.corda.notarydemo.CustomNotaryCordform'
|
|
|
|
}
|
|
|
|
|
2017-05-18 14:58:35 +00:00
|
|
|
task deployNodesRaft(type: Cordform, dependsOn: 'jar') {
|
|
|
|
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') {
|
|
|
|
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
|
|
|
}
|
2017-10-06 14:37:33 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Automatic-Module-Name': 'net.corda.samples.demos.notary'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|