Skip to content

Commit fd62576

Browse files
authored
Merge pull request #884 from kyonRay/master
Release 3.6.0
2 parents 449ba90 + c921d23 commit fd62576

File tree

101 files changed

+8079
-386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+8079
-386
lines changed

.ci/ci_check.sh

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ check_standard_node()
138138
prepare_environment "${2}"
139139
## run integration test
140140
bash gradlew clean integrationTest --info
141+
# if $? is not 0, then exit
142+
if [ ${?} -ne 0 ]; then
143+
cat log/*.log
144+
fi
141145
## clean
142146
clean_node "${1}"
143147
}
@@ -170,28 +174,39 @@ LOG_INFO "------ download_binary: v3.1.0---------"
170174
download_build_chain "v3.1.0"
171175
download_binary "v3.1.0"
172176
LOG_INFO "------ check_standard_node---------"
173-
check_standard_node
177+
check_standard_node "true" "normal" "-A"
174178
rm -rf ./bin
175179

176-
LOG_INFO "------ download_binary: v3.2.0---------"
177-
download_build_chain "v3.2.0"
178-
download_binary "v3.2.0"
180+
LOG_INFO "------ download_binary: v3.2.3---------"
181+
download_build_chain "v3.2.3"
182+
download_binary "v3.2.3"
179183
LOG_INFO "------ check_standard_node---------"
184+
check_standard_node "false" "normal" "-A"
185+
LOG_INFO "------ check_sm_node---------"
180186
check_standard_node "true" "sm" "-s -A"
181187
rm -rf ./bin
182188

183189
LOG_INFO "------ download_build_chain: v3.3.0---------"
184190
download_binary "v3.3.0"
185191
download_build_chain "v3.3.0"
186192
LOG_INFO "------ check_standard_node---------"
187-
check_standard_node "true" "sm" "-s"
193+
check_standard_node "true"
188194
rm -rf ./bin
189195

190196
LOG_INFO "------ download_build_chain: v3.4.0---------"
191197
download_binary "v3.4.0"
192198
download_build_chain "v3.4.0"
199+
LOG_INFO "------ check_standard_node---------"
200+
check_standard_node "true"
201+
rm -rf ./bin
202+
203+
LOG_INFO "------ download_build_chain: v3.5.0---------"
204+
download_binary "v3.5.0"
205+
download_build_chain "v3.5.0"
193206
LOG_INFO "------ check_wasm_node---------"
194207
check_wasm_node "false"
195208
LOG_INFO "------ check_standard_node---------"
209+
check_standard_node "false" "normal"
210+
LOG_INFO "------ check_standard_node---------"
196211
check_standard_node "true" "sm" "-s"
197212
rm -rf ./bin

.github/workflows/workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ jobs:
4141
if: runner.os == 'macOS'
4242
run: |
4343
brew install openssl@1.1 ccache
44-
- name: Set up JDK 1.8.0.345
44+
- name: Set up JDK 1.8.0.382
4545
uses: actions/setup-java@v3
4646
with:
4747
distribution: 'zulu'
48-
java-version: '8.0.345'
48+
java-version: '8.0.382'
4949
- name: run build test
5050
if: runner.os == 'Windows'
5151
run: ./gradlew.bat build
5252
- name: run integration testing
5353
# FIXME: macOS WASM integration testing failed
54-
if: runner.os != 'Windows' && runner.os != 'macOS'
54+
if: runner.os != 'Windows'
5555
run: /bin/bash .ci/ci_check.sh
5656

5757
build-centos:

build.gradle

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ ext {
2020
commonsIOVersion = '2.11.0'
2121
commonsLang3Version = '3.12.0'
2222
toml4jVersion = "0.7.2"
23-
bcprovJDK15onVersion = '1.69'
23+
bcprovJDK18onVersion = '1.75'
2424
webankJavaCryptoVersion = "1.0.3"
2525
junitVersion = '4.13.2'
2626
commonsCollections4Version = "4.4"
27-
bcosSdkJniVersion = "3.5.0"
27+
bcosSdkJniVersion = "3.6.0-SNAPSHOT"
2828
slf4jApiVerison = '1.7.36'
2929
mockitoVersion = '4.8.0'
3030
gsonVersion = '2.10.1'
@@ -35,12 +35,12 @@ ext {
3535
// integrationTest.mustRunAfter test
3636
allprojects {
3737
group = 'org.fisco-bcos.java-sdk'
38-
version = '3.5.0'
38+
version = '3.6.0-SNAPSHOT'
3939

4040
apply plugin: 'maven-publish'
4141
apply plugin: 'idea'
4242
apply plugin: 'eclipse'
43-
43+
4444
apply plugin: 'java'
4545
apply plugin: 'java-library'
4646
apply plugin: 'jacoco'
@@ -125,13 +125,13 @@ googleJavaFormat {
125125
}
126126

127127
dependencies {
128-
api("org.fisco-bcos:fisco-bcos-tars-sdk" + ":${tarsSDKVersion}")
129-
api("org.fisco-bcos:bcos-sdk-jni:${bcosSdkJniVersion}") {
130-
exclude group : "org.slf4j"
131-
exclude group : "com.fasterxml.jackson.core"
128+
api("org.fisco-bcos:fisco-bcos-tars-sdk" + ":${tarsSDKVersion}")
129+
api("org.fisco-bcos:bcos-sdk-jni:${bcosSdkJniVersion}") {
130+
exclude group: "org.slf4j"
131+
exclude group: "com.fasterxml.jackson.core"
132132
}
133133

134-
api("org.bouncycastle:bcprov-jdk15on:${bcprovJDK15onVersion}")
134+
api("org.bouncycastle:bcprov-jdk18on:${bcprovJDK18onVersion}")
135135
api("com.google.code.gson:gson:${gsonVersion}")
136136
api("org.apache.commons:commons-lang3:${commonsLang3Version}")
137137
api("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}")
@@ -159,13 +159,13 @@ configurations {
159159
}
160160

161161
task integrationTest(type: Test) {
162-
dependsOn test
162+
// dependsOn test
163163
testClassesDirs = sourceSets.integrationTest.output.classesDirs
164164
classpath = sourceSets.integrationTest.runtimeClasspath
165165
}
166166

167167
task integrationWasmTest(type: Test) {
168-
dependsOn test
168+
// dependsOn test
169169
testClassesDirs = sourceSets.integrationWasmTest.output.classesDirs
170170
classpath = sourceSets.integrationWasmTest.runtimeClasspath
171171
}
@@ -176,6 +176,15 @@ javadoc {
176176
options.addStringOption('charSet', 'UTF-8')
177177
}
178178

179+
task copyHooks(type: Copy) {
180+
if (!file(".git/hooks/pre-commit").exists()) {
181+
from("hooks") {
182+
include "**"
183+
}
184+
into ".git/hooks"
185+
}
186+
}
187+
179188
task sourcesJar(type: Jar) {
180189
from sourceSets.main.allJava
181190
archiveClassifier = 'sources'
@@ -199,9 +208,9 @@ jacocoTestReport {
199208
}
200209
}
201210

202-
tasks.withType(Test) {
203-
finalizedBy jacocoTestReport
204-
}
211+
//tasks.withType(Test) {
212+
// finalizedBy jacocoTestReport
213+
//}
205214

206215
publishing {
207216
publications {
@@ -258,7 +267,7 @@ publishing {
258267

259268
jar {
260269
// destinationDir file('dist/apps')
261-
archiveFileName="fisco-bcos-" + project.name + '-' + project.version + '.jar'
270+
archiveFileName = "fisco-bcos-" + project.name + '-' + project.version + '.jar'
262271
exclude '**/*.xml'
263272
exclude '**/*.properties'
264273

@@ -304,3 +313,4 @@ jar {
304313
}
305314
}
306315
check.dependsOn jacocoTestReport
316+
verifyGoogleJavaFormat.dependsOn(copyHooks)

hooks/pre-commit

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
#
3+
# An example hook script to verify what is about to be committed.
4+
# Called by "git commit" with no arguments. The hook should
5+
# exit with non-zero status after issuing an appropriate message if
6+
# it wants to stop the commit.
7+
#
8+
# To enable this hook, rename this file to "pre-commit".
9+
10+
bash gradlew verifyGoogleJavaFormat
11+
result=$?
12+
printf "the verifyGoogleJavaFormat result code is $result"
13+
if [[ "$result" = 0 ]] ; then
14+
echo "\033[32m
15+
....
16+
....
17+
verifyGoogleJavaFormat Pass!!
18+
....
19+
....
20+
\033[0m"
21+
exit 0
22+
else
23+
bash gradlew goJF
24+
echo "\033[31m
25+
....
26+
....
27+
verifyGoogleJavaFormat Failed!!
28+
Code format has been automatically adjusted, please review the code and then git add. && git commit;
29+
....
30+
....
31+
\033[0m"
32+
exit 1
33+
fi

0 commit comments

Comments
 (0)