2018-02-14 14:49:59 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'net.corda.plugins.cordapp'
|
|
|
|
apply plugin: 'net.corda.plugins.cordformation'
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
cordaCompile project(":core")
|
|
|
|
cordaCompile project(":node-api")
|
2018-08-11 11:57:04 +00:00
|
|
|
cordaRuntime project(path: ":node:capsule", configuration: 'runtimeArtifacts')
|
|
|
|
cordaRuntime project(path: ":webserver:webcapsule", configuration: 'runtimeArtifacts')
|
|
|
|
runtimeOnly "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
|
2018-02-14 14:49:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
|
2018-08-11 11:57:04 +00:00
|
|
|
directory file("$buildDir/nodes")
|
|
|
|
nodeDefaults {
|
|
|
|
cordapps = []
|
|
|
|
rpcUsers = [['username': "default", 'password': "default", 'permissions': [ 'ALL' ]]]
|
|
|
|
}
|
2018-02-14 14:49:59 +00:00
|
|
|
node {
|
|
|
|
name "O=Notary Service,L=Zurich,C=CH"
|
|
|
|
notary = [validating : true]
|
|
|
|
p2pPort 10002
|
|
|
|
rpcSettings {
|
|
|
|
port 10003
|
|
|
|
adminPort 10004
|
|
|
|
}
|
2018-08-11 11:57:04 +00:00
|
|
|
rpcUsers = []
|
2018-08-01 10:50:42 +00:00
|
|
|
extraConfig = ['h2Settings.address' : 'localhost:10005']
|
2018-02-14 14:49:59 +00:00
|
|
|
}
|
|
|
|
node {
|
|
|
|
name "O=Bank A,L=London,C=GB"
|
2018-08-01 10:50:42 +00:00
|
|
|
p2pPort 10006
|
2018-02-14 14:49:59 +00:00
|
|
|
// This configures the default cordapp for this node
|
|
|
|
projectCordapp {
|
|
|
|
config "someStringValue=test"
|
|
|
|
}
|
|
|
|
rpcSettings {
|
|
|
|
port 10007
|
|
|
|
adminPort 10008
|
|
|
|
}
|
2018-08-01 10:50:42 +00:00
|
|
|
extraConfig = ['h2Settings.address' : 'localhost:10009']
|
2018-02-14 14:49:59 +00:00
|
|
|
}
|
|
|
|
node {
|
|
|
|
name "O=Bank B,L=New York,C=US"
|
2018-08-01 10:50:42 +00:00
|
|
|
p2pPort 10010
|
2018-02-14 14:49:59 +00:00
|
|
|
// This configures the default cordapp for this node
|
|
|
|
projectCordapp {
|
|
|
|
config project.file("src/config.conf")
|
|
|
|
}
|
|
|
|
rpcSettings {
|
|
|
|
port 10011
|
|
|
|
adminPort 10012
|
|
|
|
}
|
2018-08-01 10:50:42 +00:00
|
|
|
extraConfig = ['h2Settings.address' : 'localhost:10013']
|
2018-02-14 14:49:59 +00:00
|
|
|
}
|
|
|
|
}
|