Skip to content

Commit

Permalink
Merge pull request #96 from WeBankFinTech/release/1.4.2
Browse files Browse the repository at this point in the history
Merge Release/1.4.2 to master
  • Loading branch information
chaoxinhu committed Dec 10, 2019
2 parents edf8a94 + cad4860 commit 7612444
Show file tree
Hide file tree
Showing 52 changed files with 1,065 additions and 948 deletions.
4 changes: 3 additions & 1 deletion .ci/script/build-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ weid_config_tpl=${java_source_code_dir}/src/main/resources/weidentity.properties
weid_config=${java_source_code_dir}/src/main/resources/weidentity.properties
font=${java_source_code_dir}/src/main/resources/NotoSansCJKtc-Regular.ttf

JAVA_OPTS='-Djdk.tls.namedGroups="secp256k1"'

function modify_config()
{
echo "begin to modify sdk config..."
Expand Down Expand Up @@ -87,7 +89,7 @@ function deploy_contract()
CLASSPATH=${CLASSPATH}:${jar_file}
done

java -cp "$CLASSPATH" com.webank.weid.contract.deploy.DeployContract
java ${JAVA_OPTS} -cp "$CLASSPATH" com.webank.weid.contract.deploy.DeployContract
echo "contract deployment done."
}

Expand Down
12 changes: 6 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 1. 发现 bug

使用过程中遇到的任何问题,可以查看 [FAQ](../docs/zh_CN/docs/faq.md) ,或者给我们提 [issue](https://github.com/WeBankFinTech/WeIdentity/issues)
使用过程中遇到的任何问题,可以查看 [FAQ](https://github.com/WeBankFinTech/weid-doc/blob/master/docs/zh_CN/docs/faq.md),或者给我们提 [issue](https://github.com/WeBankFinTech/WeIdentity/issues)

## 2. 优化建议

Expand All @@ -24,16 +24,16 @@

#### 分支管理

代码类工程我们使用 [git-flow](https://nvie.com/posts/a-successful-git-branching-model/) 进行分支管理。包括这些工程: [weid-java-sdk](https://github.com/WeBankFinTech/weid-java-sdk)[weid-contract](https://github.com/WeBankFinTech/weid-contract)
文档类工程我们使用 [github-flow](http://scottchacon.com/2011/08/31/github-flow.html) 进行分支管理。包括这些工程: [WeIdentity](https://github.com/WeBankFinTech/WeIdentity)
代码类工程我们使用 [git-flow](https://nvie.com/posts/a-successful-git-branching-model/) 进行分支管理。包括这些工程: [WeIdentity](https://github.com/WeBankFinTech/WeIdentity)[weid-contract](https://github.com/WeBankFinTech/weid-contract)[weid-build-tools](https://github.com/WeBankFinTech/weid-build-tools)[weid-sample](https://github.com/WeBankFinTech/weid-sample)
文档类工程我们使用 [github-flow](http://scottchacon.com/2011/08/31/github-flow.html) 进行分支管理。包括这些工程:[weid-doc](https://github.com/WeBankFinTech/weid-doc)

#### 代码规范

建议先浏览 [WeIdentity 代码规范](../docs/zh_CN/docs/styleguides/styleguides.md)
建议先浏览 [WeIdentity 代码规范](https://github.com/WeBankFinTech/weid-doc/blob/master/docs/zh_CN/docs/styleguides/styleguides.md)

#### 测试

所有提交的代码必须通过单元测试,如果提交的代码目前的单元测试用例无法覆盖,可以修改单元测试代码从而覆盖用例,或者在 Pull Request 里面说明情况,然后由我们来补充单元测试用例。详见“[如何运行单元测试](../docs/zh_CN/docs/how-to-run-unit-test.md)”。
所有提交的代码必须通过单元测试,如果提交的代码目前的单元测试用例无法覆盖,可以修改单元测试代码从而覆盖用例,或者在 Pull Request 里面说明情况,然后由我们来补充单元测试用例。详见“[如何运行单元测试](https://weidentity.readthedocs.io/zh_CN/latest/docs/how-to-run-unit-test.html)”。

#### Commit Messages

Expand All @@ -55,7 +55,7 @@ data & logic contracts.

### 3.2 流程

1. Fork 希望提交代码修改的 repository 。例如,如果想要修改 [weid-java-sdk](https://github.com/WeBankFinTech/weid-java-sdk) ,则 Fork 这个 repository。
1. Fork 希望提交代码修改的 repository 。例如,如果想要修改 [WeIdentity](https://github.com/WeBankFinTech/WeIdentity) ,则 Fork 这个 repository。

2. 创建新的分支,例如分支取名为 `feature/add-verfiy-logic` (分支名请使用 `feature/` 开头)。

Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### V1.4.2 (2019-12-10)
- Features:
1. Allow WeID owners to remove unused public keys and authentications in WeID Document.
2. Embedded CredentialPojo now supports change disclosure policy of inner CredentialPojo.
3. WeIdentity now supports deployment on different FISCO-BCOS Groups (check docs for details).

- Bugfixes:
1. Fix various issues when serializing Embedded CredentialPojo.
2. Bump jackson, jacoco and jmockit for security concerns.
3. WeIdentity can now work with JDK1.8+ up to openjdk13.
4. Fix broken Document URLs and simplify the document repository structure.

### V1.4.1 (2019-11-01)
- Bugfixes:
1. Fixed multiple potential leaks which might cause NPE.
Expand Down
4 changes: 3 additions & 1 deletion build-tools/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ echo $source_code_dir
cd $source_code_dir

if [ -d dist/ ];then
rm -rf dist/
rm -rf dist/app
rm -rf dist/conf
rm -rf dist/*.jar
fi

gradle clean build -x checkMain -x checkTest -x spotbugsMain -x spotbugsTest -x test
Expand Down
8 changes: 6 additions & 2 deletions build-tools/bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ app_xml_config=${java_source_code_dir}/src/main/resources/fisco.properties
weid_config_tpl=${java_source_code_dir}/src/main/resources/weidentity.properties.tpl
weid_config=${java_source_code_dir}/src/main/resources/weidentity.properties

JAVA_OPTS='-Djdk.tls.namedGroups="secp256k1"'

CLASSPATH=${java_source_code_dir}/dist/conf

for jar_file in ${java_source_code_dir}/dist/lib/*.jar
Expand Down Expand Up @@ -145,7 +147,9 @@ function gradle_build_sdk()

cd ${java_source_code_dir}/
if [ -d dist/ ];then
rm -rf dist/
rm -rf dist/app
rm -rf dist/conf
rm -rf dist/*.jar
fi
gradle clean build -x checkMain -x checkTest -x spotbugsMain -x spotbugsTest -x test
echo "compile java code done."
Expand All @@ -160,7 +164,7 @@ function deploy_contract()
CLASSPATH=${CLASSPATH}:${jar_file}
done

java -cp "$CLASSPATH" com.webank.weid.contract.deploy.DeployContract
java ${JAVA_OPTS} -cp "$CLASSPATH" com.webank.weid.contract.deploy.DeployContract
echo "contract deployment done."
}

Expand Down
17 changes: 13 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (!gradle.startParameter.isOffline()) {

group 'com.webank'

version = "1.4.1"
version = "1.4.2"

// Specify JDK version - may vary in different scenarios
sourceCompatibility = 1.8
Expand Down Expand Up @@ -81,11 +81,11 @@ List apache_commons = [
]

List jmockit = [
"org.jmockit:jmockit:1.9"
"org.jmockit:jmockit:1.47"
]

List json = [
"com.fasterxml.jackson.core:jackson-databind:2.8.8.1",
"com.fasterxml.jackson.core:jackson-databind:2.10.0",
"com.github.fge:json-schema-validator:2.2.6",
"com.github.reinert:jjschema:1.16"
]
Expand Down Expand Up @@ -179,6 +179,11 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
from 'build/docs/javadoc'
}

test {
systemProperty "jdk.tls.namedGroups", "${jdkTlsNamedGroups}"
jvmArgs "-javaagent:${classpath.find { it.name.contains("jmockit") }.absolutePath}"
}

artifacts {
archives jar
archives sourcesJar
Expand Down Expand Up @@ -225,7 +230,11 @@ if (!gradle.startParameter.isOffline()) {
html.enabled false
}
}


jacoco{
toolVersion = "0.8.5"
}

check.dependsOn jacocoTestReport

checkstyle {
Expand Down
5 changes: 3 additions & 2 deletions check-info.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

JAVA_OPTS='-Djdk.tls.namedGroups="secp256k1"'
classpathDir="./dist/conf"
libDir="./dist/lib"
set -- `getopt c:l: "$@"`
Expand Down Expand Up @@ -260,7 +261,7 @@ function check_node_version() {
then
echo "WARN: the current version of SDK does not support to check the node version, minimum version 1.4.0"
else
java -cp $libDir/*:$classpathDir/ com.webank.weid.app.AppCommand --checkversion test
java ${JAVA_OPTS} -cp $libDir/*:$classpathDir/ com.webank.weid.app.AppCommand --checkversion test
fi
fi
done
Expand All @@ -279,7 +280,7 @@ function check_node_version() {
echo "WARN: the current version of SDK does not support to check the node version, minimum version 1.4.0"
else
currentDir=`pwd`
java -cp $currentDir/dist/lib/*:$currentDir/dist/app/*:$currentDir/dist/conf/ com.webank.weid.app.AppCommand --checkversion test
java ${JAVA_OPTS} -cp $currentDir/dist/lib/*:$currentDir/dist/app/*:$currentDir/dist/conf/ com.webank.weid.app.AppCommand --checkversion test
fi
fi
done
Expand Down
2 changes: 1 addition & 1 deletion config/checkstyle/webank_google_checks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</module>

<module name="SuppressionFilter">
<property name="file" value="config/checkstyle/suppressions.xml"/>
<property name="file" value="${config_loc}/suppressions.xml"/>
<property name="optional" value="false"/>
</module>
<module name="SuppressWarningsFilter"/>
Expand Down
105 changes: 0 additions & 105 deletions docs/zh_CN/docs/faq.rst

This file was deleted.

0 comments on commit 7612444

Please sign in to comment.