forked from project-ubin/ubin-corda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
151 lines (139 loc) · 5.89 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
139
140
141
142
143
144
145
146
147
148
149
150
151
buildscript {
ext.corda_release_version = '1.0.1-UBIN'
ext.corda_gradle_plugins_version = '1.0.0'
ext.kotlin_version = '1.1.51'
ext.junit_version = '4.12'
ext.quasar_version = '0.7.9'
repositories {
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/ubin' }
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.sun.jersey:jersey-client:1.19.4"
classpath "net.corda.plugins:publish-utils:$corda_gradle_plugins_version"
classpath "net.corda.plugins:cordformation:$corda_gradle_plugins_version"
classpath "net.corda.plugins:quasar-utils:$corda_gradle_plugins_version"
}
}
repositories {
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/ubin' }
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/exposed' }
maven { url 'https://jitpack.io' }
}
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'net.corda.plugins.cordformation'
apply plugin: 'net.corda.plugins.quasar-utils'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "junit:junit:$junit_version"
// Corda integration dependencies
cordaCompile "net.corda:corda-core:$corda_release_version"
cordaCompile "net.corda:corda-finance:$corda_release_version"
cordaCompile "net.corda:corda-jackson:$corda_release_version"
cordaCompile "net.corda:corda-rpc:$corda_release_version"
cordaCompile "net.corda:corda-webserver-impl:$corda_release_version"
cordaCompile "net.corda:corda:$corda_release_version"
cordaRuntime "net.corda:corda-webserver:$corda_release_version"
testCompile "net.corda:corda-node-driver:$corda_release_version"
// CorDapp dependencies
// Specify your cordapp's dependencies below, including dependent cordapps
cordapp "net.corda:corda-finance:$corda_release_version"
cordapp project(":base")
cordapp project(":cash")
cordapp project(":obligation")
cordapp project(":detect")
cordapp project(":plan")
cordapp project(":execute")
cordapp project(":account")
cordapp project(":redeem")
cordapp project(":pledge")
cordapp project(":api")
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
languageVersion = "1.1"
apiVersion = "1.1"
jvmTarget = "1.8"
javaParameters = true // Useful for reflection.
}
}
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
directory "./build/nodes"
networkMap "O=MAS Regulator,L=Singapore,C=SG"
node {
name "O=MAS Regulator,L=Singapore,C=SG"
advertisedServices = ["corda.notary.simple"]
p2pPort 10001
rpcPort 10002
webPort 10003
cordapps = ["$project.group:base:$project.version",
"$project.group:cash:$project.version",
"$project.group:obligation:$project.version",
"$project.group:detect:$project.version",
"$project.group:plan:$project.version",
"$project.group:execute:$project.version",
"$project.group:redeem:$project.version",
"$project.group:pledge:$project.version",
"$project.group:account:$project.version",
"$project.group:api:$project.version",
"net.corda:corda-finance:$corda_release_version"]
rpcUsers = [[user: "user1", "password": "test", "permissions": []]]
}
node {
name "O=MAS,L=Singapore,C=SG"
advertisedServices = []
p2pPort 10004
rpcPort 10005
webPort 10006
cordapps = ["$project.group:base:$project.version",
"$project.group:cash:$project.version",
"$project.group:obligation:$project.version",
"$project.group:detect:$project.version",
"$project.group:plan:$project.version",
"$project.group:execute:$project.version",
"$project.group:redeem:$project.version",
"$project.group:pledge:$project.version",
"$project.group:account:$project.version",
"$project.group:api:$project.version",
"net.corda:corda-finance:$corda_release_version"]
rpcUsers = [[user: "user1", "password": "test", "permissions": []]]
}
node {
name "O=CSFBSGSX,L=Singapore,C=SG"
advertisedServices = []
p2pPort 10007
rpcPort 10008
webPort 10009
cordapps = ["$project.group:base:$project.version",
"$project.group:cash:$project.version",
"$project.group:obligation:$project.version",
"$project.group:detect:$project.version",
"$project.group:plan:$project.version",
"$project.group:execute:$project.version",
"$project.group:redeem:$project.version",
"$project.group:pledge:$project.version",
"$project.group:account:$project.version",
"$project.group:api:$project.version",
"net.corda:corda-finance:$corda_release_version"]
rpcUsers = [[user: "user1", "password": "test", "permissions": []]]
}
// node {
// name "O=MUFG,L=Singapore,C=SG"
// advertisedServices = []
// p2pPort 10020
// rpcPort 10021
// webPort 10022
// cordapps = ["$project.group:base:$project.version",
// "$project.group:obligation:$project.version",
// "net.corda:corda-finance:$corda_release_version"]
// rpcUsers = [[user: "user1", "password": "test", "permissions": []]]
// }
}