-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
121 lines (112 loc) · 4.11 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
buildscript {
ext {
corda_release_group = "net.corda"
corda_release_version = "4.1"
corda_gradle_plugins_version = "4.0.45"
quasar_version = "0.7.10"
log4j_version = "2.11.2"
slf4j_version = "1.7.25"
corda_platform_version = 4
testCordapp4 = "com.exactpro.cordapp-sample:obligation-j:0.0.1"
}
repositories {
mavenCentral()
jcenter()
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases' }
}
dependencies {
classpath "net.corda.plugins:cordapp:$corda_gradle_plugins_version"
classpath "net.corda.plugins:cordformation:$corda_gradle_plugins_version"
classpath "net.corda.plugins:quasar-utils:$corda_gradle_plugins_version"
}
}
allprojects {
repositories {
// maven { url "https://dl.bintray.com/exactpro/cordapp-library/" } // cordapp-sample:obligation-j|k
// mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
}
apply plugin: 'net.corda.plugins.cordapp'
apply plugin: 'net.corda.plugins.cordformation'
apply plugin: 'net.corda.plugins.quasar-utils'
// this is a fictional cordapp of this project
// it's harmless, though it's reported as a loaded cordapp
// to fix that add 'projectCordapp { deploy = false }' in node {}
cordapp {
// silence a [jar] task warning
targetPlatformVersion corda_platform_version
minimumPlatformVersion corda_platform_version
workflow {
name "project"
vendor "Exactpro"
licence "Apache-2.0"
versionId 1
}
}
dependencies {
// cordaRuntime "$corda_release_group:corda-core:$corda_release_version"
// cordaRuntime "$corda_release_group:corda-jackson:$corda_release_version"
cordaRuntime "$corda_release_group:corda-rpc:$corda_release_version"
cordaRuntime "$corda_release_group:corda:$corda_release_version"
cordaRuntime "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
cordapp "$corda_release_group:corda-finance-contracts:$corda_release_version"
cordapp "$corda_release_group:corda-finance-workflows:$corda_release_version"
cordapp "$corda_release_group:corda-confidential-identities:$corda_release_version"
cordapp "$testCordapp4"
}
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
nodeDefaults {
projectCordapp { deploy = false }
cordapp("$corda_release_group:corda-finance-contracts:$corda_release_version")
cordapp("$corda_release_group:corda-finance-workflows:$corda_release_version")
cordapp("$corda_release_group:corda-confidential-identities:$corda_release_version")
cordapp("$testCordapp4")
// rpcUsers = [[ user: "user1", "password": "test", "permissions": ["ALL"]]]
}
node {
name "O=Notary,L=London,C=GB"
notary = [validating : false]
p2pPort 10001
rpcSettings {
address("localhost:10002")
adminAddress("localhost:10003")
}
rpcUsers = [[ user: "userN", "password": "passwN", "permissions": ["ALL"]]]
cordapps.clear()
}
node {
name "O=PartyA,L=Austin,C=US"
p2pPort 10011
rpcSettings {
address("localhost:10012")
adminAddress("localhost:10013")
}
rpcUsers = [[ user: "userA", "password": "passwA", "permissions": ["ALL"]]]
// extraConfig = [ 'sshd.port':'10014' ]
// webPort 10015
}
node {
name "O=PartyB,L=Bath,C=GB"
p2pPort 10021
rpcSettings {
address("localhost:10022")
adminAddress("localhost:10023")
}
rpcUsers = [[ user: "userB", "password": "passwB", "permissions": ["ALL"]]]
// extraConfig = [ 'sshd.port': 10024 ]
// webPort 10025
}
node {
name "O=PartyC,L=Cologne,C=DE"
p2pPort 10031
rpcSettings {
address("localhost:10032")
adminAddress("localhost:10033")
}
rpcUsers = [[ user: "userC", "password": "passwC", "permissions": ["ALL"]]]
}
}