-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
147 lines (120 loc) · 4.29 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
buildscript {
ext {
kotlin_group = "org.jetbrains.kotlin"
kotlin_version = "1.2.71"
corda_group = "net.corda"
corda_release_version = "4.0"
corda_gradle_plugin_group = "net.corda.plugins"
corda_gradle_plugin_version = "4.0.45"
junit_group = "org.junit.jupiter"
junit_version = "5.3.1"
log4j_group = "org.apache.logging.log4j"
log4j_version = "2.11.2"
logback_group = "ch.qos.logback"
logback_version = "1.2.3"
jackson_group = "com.fasterxml.jackson.datatype"
jackson_version = "2.9.8"
ktor_group = "io.ktor"
ktor_version = "1.2.2"
ktor_kotlin_version = "1.3.40"
cordapp_platform_version = 4
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases' }
}
dependencies {
classpath "$kotlin_group:kotlin-gradle-plugin:$ktor_kotlin_version"
classpath "$corda_gradle_plugin_group:cordapp:$corda_gradle_plugin_version"
classpath "$corda_gradle_plugin_group:cordformation:$corda_gradle_plugin_version"
classpath "$corda_gradle_plugin_group:quasar-utils:$corda_gradle_plugin_version"
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
maven { url "https://ci-artifactory.corda.r3cev.com/artifactory/corda" }
maven { url "https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases" }
maven { url "https://ci-artifactory.corda.r3cev.com/artifactory/corda-lib" }
maven { url "https://ci-artifactory.corda.r3cev.com/artifactory/corda-lib-dev" }
maven { url "https://jitpack.io" }
maven { url "https://ci-artifactory.corda.r3cev.com/artifactory/corda-solutions-releases" }
}
apply plugin: 'kotlin'
apply plugin: 'net.corda.plugins.cordapp'
apply plugin: 'net.corda.plugins.cordformation'
apply plugin: 'net.corda.plugins.quasar-utils'
dependencies {
// Kotlin Dependencies
implementation "$kotlin_group:kotlin-stdlib-jdk8:$kotlin_version"
// Corda Development Dependencies
cordaCompile "$corda_group:corda-core:$corda_release_version"
// CorDapp Dependencies
cordapp project(":workflows:")
cordapp project(":contracts:")
// Corda Deployment Dependencies
cordaCompile "$corda_group:corda:$corda_release_version"
cordaCompile "$corda_group:corda-node:$corda_release_version"
cordaRuntime "$log4j_group:log4j-slf4j-impl:$log4j_version"
// Test Dependencies
cordapp "com.r3.corda.lib.tokens:tokens-contracts:1.0"
cordapp "com.r3.corda.lib.tokens:tokens-workflows:1.0"
cordapp "com.r3.corda.lib.tokens:tokens-money:1.0"
}
jar { exclude '**/log4j2*.xml' }
test { useJUnitPlatform() }
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
kotlinOptions {
languageVersion = "1.2"
apiVersion = "1.2"
jvmTarget = "1.8"
javaParameters = true
}
}
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ["jar"]) {
directory "./build/nodes"
nodeDefaults {
projectCordapp {
deploy = false
}
cordapp project(":workflows:")
cordapp project(":contracts:")
// Token SDK
cordapp "com.r3.corda.lib.tokens:tokens-contracts:1.0"
cordapp "com.r3.corda.lib.tokens:tokens-workflows:1.0"
cordapp "com.r3.corda.lib.tokens:tokens-money:1.0"
rpcUsers = [[user: "guest", "password": "letmein", "permissions": ["ALL"]]]
}
node {
name "O=Notary,L=London,C=GB"
notary = [validating: false]
p2pPort 10002
rpcSettings {
address("localhost:10003")
adminAddress("localhost:10043")
}
cordapps.clear()
}
node {
name "O=Buyer,L=London,C=GB"
p2pPort 10004
rpcSettings {
address("localhost:10005")
adminAddress("localhost:10045")
}
}
node {
name "O=Seller,L=New York,C=US"
p2pPort 10008
rpcSettings {
address("localhost:10009")
adminAddress("localhost:10049")
}
}
}