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
|
2016-12-06 15:03:33 +00:00
|
|
|
runtime project(path: ":node:capsule", configuration: 'runtimeArtifacts')
|
2017-03-30 16:34:32 +00:00
|
|
|
runtime project(path: ":webserver:webcapsule", configuration: 'runtimeArtifacts')
|
2016-11-22 18:09:56 +00:00
|
|
|
compile project(':core')
|
2017-03-21 19:45:12 +00:00
|
|
|
compile project(':client:jfx')
|
2017-03-22 15:52:54 +00:00
|
|
|
compile project(':client:rpc')
|
2016-11-22 18:09:56 +00:00
|
|
|
compile project(':test-utils')
|
2017-05-18 14:58:35 +00:00
|
|
|
compile project(':cordform-common')
|
2016-11-22 18:09:56 +00:00
|
|
|
|
|
|
|
// Javax is required for webapis
|
|
|
|
compile "org.glassfish.jersey.core:jersey-server:${jersey_version}"
|
|
|
|
}
|
|
|
|
|
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
downloadJavadoc = true // defaults to false
|
|
|
|
downloadSources = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
jarAndSources(MavenPublication) {
|
|
|
|
from components.java
|
|
|
|
artifactId 'raftnotarydemo'
|
|
|
|
|
|
|
|
artifact sourceJar
|
|
|
|
artifact javadocJar
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-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
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|