Skip to content

Commit 68daa8c

Browse files
authored
feat: add ics20-irc2 support (#852)
1 parent feebe68 commit 68daa8c

File tree

6 files changed

+1157
-1
lines changed

6 files changed

+1157
-1
lines changed
+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
version = '0.1.0'
2+
3+
dependencies {
4+
implementation project(':lib')
5+
implementation project(':score-util')
6+
implementation project(':proto-lib')
7+
implementation "com.github.sink772:minimal-json:0.9.6"
8+
testImplementation project(':test-lib')
9+
}
10+
11+
12+
test {
13+
useJUnitPlatform()
14+
finalizedBy jacocoTestReport
15+
}
16+
17+
jacocoTestReport {
18+
dependsOn test
19+
reports {
20+
xml.required = true
21+
csv.required = false
22+
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
23+
}
24+
}
25+
26+
optimizedJar {
27+
dependsOn(project(':lib').jar)
28+
dependsOn(project(':score-util').jar)
29+
dependsOn(project(':proto-lib').jar)
30+
mainClassName = 'ibc.ics20.ICS20Transfer'
31+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
32+
from {
33+
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
34+
}
35+
}
36+
37+
deployJar {
38+
endpoints {
39+
berlin {
40+
uri = 'https://berlin.net.solidwallet.io/api/v3'
41+
nid = 0x7
42+
}
43+
lisbon {
44+
uri = 'https://lisbon.net.solidwallet.io/api/v3'
45+
nid = 0x2
46+
}
47+
local {
48+
uri = 'http://localhost:9082/api/v3'
49+
nid = 0x3
50+
}
51+
uat {
52+
uri = project.findProperty('uat.host') as String
53+
nid = property('uat.nid') as Integer
54+
to = "$xCallConnection"?:null
55+
}
56+
}
57+
keystore = rootProject.hasProperty('keystoreName') ? "$keystoreName" : ''
58+
password = rootProject.hasProperty('keystorePass') ? "$keystorePass" : ''
59+
parameters {
60+
arg('_ibcHandler', "$ibcCore")
61+
arg('_serializeIrc2', "")
62+
}
63+
}
64+
65+
task integrationTest(type: Test) {
66+
useJUnitPlatform()
67+
68+
rootProject.allprojects {
69+
if (it.getTasks().findByName('optimizedJar')) {
70+
dependsOn(it.getTasks().getByName('optimizedJar'))
71+
}
72+
}
73+
74+
options {
75+
testLogging.showStandardStreams = true
76+
description = 'Runs integration tests.'
77+
group = 'verification'
78+
79+
testClassesDirs = sourceSets.intTest.output.classesDirs
80+
classpath = sourceSets.intTest.runtimeClasspath
81+
82+
systemProperty "java", optimizedJar.outputJarName
83+
}
84+
85+
}

0 commit comments

Comments
 (0)