-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
138 lines (127 loc) · 4.21 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
buildscript {
ext.corda_release_group = 'net.corda'
ext.corda_release_version = 'corda-3.0'
ext.corda_gradle_plugins_version = '3.0.9'
ext.junit_version = '4.12'
ext.quasar_version = '0.7.9'
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases' }
flatDir { dirs "lib/dependencies" }
}
dependencies {
classpath fileTree(dir: 'lib/dependencies', include: '*.jar')
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"
}
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases' }
flatDir { dirs "${project.rootProject.projectDir}/lib/dependencies" }
}
apply plugin: 'java'
apply plugin: 'net.corda.plugins.cordapp'
apply plugin: 'net.corda.plugins.cordformation'
apply plugin: 'net.corda.plugins.quasar-utils'
sourceSets {
main {
resources {
srcDir "../config/dev"
}
}
test {
resources {
srcDir "../config/test"
}
}
}
dependencies {
compileClasspath fileTree(dir: 'lib/dependencies', include: '*.jar')
cordaCompile "$corda_release_group:corda-core:$corda_release_version"
cordaCompile "$corda_release_group:corda-jackson:$corda_release_version"
cordaCompile "$corda_release_group:corda-rpc:$corda_release_version"
cordaCompile "$corda_release_group:corda-node-api:$corda_release_version"
cordaRuntime "$corda_release_group:corda:$corda_release_version"
testCompileClasspath fileTree(dir: 'lib/dependencies', include: '*.jar')
testCompile "$corda_release_group:corda-node-driver:$corda_release_version"
testCompile "$corda_release_group:corda-test-utils:$corda_release_version"
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-parameters" // Required for shell commands.
}
task deployNodesJava(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
directory "./build/nodes"
node {
name "O=Notary,L=India,C=BA,OU=notary"
notary = [validating: false]
p2pPort 10002
cordapps = [
"$project.group:cordapp:$project.version"
]
}
node {
name "O=InsuranceA,L=India,C=BA,OU=issuer"
p2pPort 10003
rpcSettings {
address("localhost:10004")
adminAddress("localhost:10005")
}
cordapps = [
"$project.group:cordapp:$project.version"
]
rpcUsers = [[user: "InsuranceA", password: "1234", permissions: ["ALL"]]]
}
node {
name "O=InsuranceB,L=India,C=BA,OU=issuer"
p2pPort 10006
rpcSettings {
address("localhost:10007")
adminAddress("localhost:10008")
}
cordapps = [
"$project.group:cordapp:$project.version"
]
rpcUsers = [[user: "InsuranceB", password: "1234", permissions: ["ALL"]]]
}
node {
name "O=Akash,L=India,C=BA,OU=insurer"
p2pPort 10009
rpcSettings {
address("localhost:10010")
adminAddress("localhost:10011")
}
cordapps = [
"$project.group:cordapp:$project.version"
]
rpcUsers = [[user: "Akash", password: "1234", permissions: ["ALL"]]]
}
node {
name "O=Anil,L=India,C=BA,OU=insurer"
p2pPort 10012
rpcSettings {
address("localhost:10013")
adminAddress("localhost:10014")
}
cordapps = [
"$project.group:cordapp:$project.version"
]
rpcUsers = [[user: "Anil", password: "1234", permissions: ["ALL"]]]
}
}
task gatherDependencies(type: Copy) {
into "lib/dependencies"
from buildscript.configurations.classpath
from configurations.runtime
from configurations.compile
from configurations.testCompile
from configurations.testRuntime
from configurations.quasar
}