2018-07-04 10:33:21 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'net.corda.plugins.cordapp'
|
|
|
|
apply plugin: 'net.corda.plugins.cordformation'
|
|
|
|
|
2019-03-11 16:48:35 +00:00
|
|
|
cordapp {
|
|
|
|
info {
|
|
|
|
name "Corda Network Verifier"
|
|
|
|
vendor "R3"
|
|
|
|
targetPlatformVersion corda_platform_version.toInteger()
|
|
|
|
minimumPlatformVersion 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-04 10:33:21 +00:00
|
|
|
dependencies {
|
2022-03-08 10:50:59 +00:00
|
|
|
if (System.getProperty('excludeShell') == null) {
|
|
|
|
cordaDriver "net.corda:corda-shell:$corda_release_version"
|
|
|
|
}
|
2019-03-11 16:48:35 +00:00
|
|
|
// Cordformation needs this for the Network Bootstrapper.
|
|
|
|
runtimeOnly project(':node-api')
|
|
|
|
|
|
|
|
// Cordformation needs a SLF4J implementation when executing the Network
|
|
|
|
// Bootstrapper, but Log4J doesn't shutdown completely from within Gradle.
|
|
|
|
// Use a much simpler SLF4J implementation here instead.
|
2019-05-20 10:57:56 +00:00
|
|
|
cordaRuntime "org.slf4j:slf4j-simple:$slf4j_version"
|
2018-07-04 10:33:21 +00:00
|
|
|
|
2018-10-15 20:11:52 +00:00
|
|
|
// Corda integration dependencies
|
|
|
|
cordaRuntime project(path: ":node:capsule", configuration: 'runtimeArtifacts')
|
2019-01-23 13:26:33 +00:00
|
|
|
|
|
|
|
cordapp project(':samples:network-verifier:contracts')
|
|
|
|
cordapp project(':samples:network-verifier:workflows')
|
2018-07-04 10:33:21 +00:00
|
|
|
}
|
|
|
|
|
2018-10-15 20:11:52 +00:00
|
|
|
def nodeTask = tasks.getByPath(':node:capsule:assemble')
|
|
|
|
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar', nodeTask]) {
|
2018-07-04 10:33:21 +00:00
|
|
|
ext.rpcUsers = [['username': "default", 'password': "default", 'permissions': [ 'ALL' ]]]
|
2019-01-23 13:26:33 +00:00
|
|
|
nodeDefaults{
|
|
|
|
projectCordapp {
|
|
|
|
deploy = false
|
|
|
|
}
|
|
|
|
cordapp project(':samples:network-verifier:contracts')
|
|
|
|
cordapp project(':samples:network-verifier:workflows')
|
2020-06-15 14:52:31 +00:00
|
|
|
runSchemaMigration = true
|
2019-01-23 13:26:33 +00:00
|
|
|
}
|
2018-07-04 10:33:21 +00:00
|
|
|
node {
|
2020-07-20 09:59:08 +00:00
|
|
|
name "O=Notary Node,L=Zurich,C=CH"
|
|
|
|
notary = [validating : false,
|
|
|
|
serviceLegalName: "O=Notary Service,L=Zurich,C=CH"
|
|
|
|
]
|
2018-07-04 10:33:21 +00:00
|
|
|
p2pPort 10002
|
|
|
|
rpcSettings {
|
|
|
|
port 10003
|
|
|
|
adminPort 10004
|
|
|
|
}
|
2018-08-01 10:50:42 +00:00
|
|
|
extraConfig = ['h2Settings.address' : 'localhost:20004']
|
2018-07-04 10:33:21 +00:00
|
|
|
}
|
|
|
|
node {
|
|
|
|
name "O=Bank A,L=London,C=GB"
|
|
|
|
p2pPort 10005
|
|
|
|
cordapps = []
|
2024-11-12 07:48:11 +00:00
|
|
|
rpcUsers = [['username': "demo", 'password': "demo", 'permissions': ["StartFlow.net.corda.attachmentdemo.AttachmentDemoFlow",
|
|
|
|
"InvokeRpc.partiesFromName",
|
|
|
|
"InvokeRpc.notaryPartyFromX500Name",
|
|
|
|
"InvokeRpc.attachmentExists",
|
|
|
|
"InvokeRpc.openAttachment",
|
|
|
|
"InvokeRpc.uploadAttachment",
|
|
|
|
"InvokeRpc.internalVerifiedTransactionsFeed",
|
|
|
|
"InvokeRpc.startTrackedFlowDynamic",
|
|
|
|
"InvokeRpc.nodeInfo"]]]
|
2018-07-04 10:33:21 +00:00
|
|
|
rpcSettings {
|
|
|
|
port 10007
|
|
|
|
adminPort 10008
|
|
|
|
}
|
2018-08-01 10:50:42 +00:00
|
|
|
extraConfig = ['h2Settings.address' : 'localhost:0']
|
2018-07-04 10:33:21 +00:00
|
|
|
}
|
|
|
|
node {
|
|
|
|
name "O=Bank B,L=New York,C=US"
|
|
|
|
p2pPort 10009
|
|
|
|
cordapps = []
|
2024-11-12 07:48:11 +00:00
|
|
|
rpcUsers = [['username': "demo", 'password': "demo", 'permissions': ["StartFlow.net.corda.attachmentdemo.AttachmentDemoFlow",
|
|
|
|
"InvokeRpc.partiesFromName",
|
|
|
|
"InvokeRpc.notaryPartyFromX500Name",
|
|
|
|
"InvokeRpc.attachmentExists",
|
|
|
|
"InvokeRpc.openAttachment",
|
|
|
|
"InvokeRpc.uploadAttachment",
|
|
|
|
"InvokeRpc.internalVerifiedTransactionsFeed",
|
|
|
|
"InvokeRpc.startTrackedFlowDynamic",
|
|
|
|
"InvokeRpc.nodeInfo"]]]
|
2018-07-04 10:33:21 +00:00
|
|
|
rpcSettings {
|
|
|
|
port 10011
|
|
|
|
adminPort 10012
|
|
|
|
}
|
2018-08-01 10:50:42 +00:00
|
|
|
extraConfig = ['h2Settings.address' : 'localhost:0']
|
2018-07-04 10:33:21 +00:00
|
|
|
}
|
2018-10-15 20:11:52 +00:00
|
|
|
}
|