Skip to content

Commit

Permalink
Merge pull request #88 from WeBankFinTech/release/1.4.1
Browse files Browse the repository at this point in the history
Merge Release/1.4.1 to master
  • Loading branch information
chaoxinhu committed Nov 5, 2019
2 parents 1ad1705 + 8d74b26 commit edf8a94
Show file tree
Hide file tree
Showing 9 changed files with 140 additions and 112 deletions.
1 change: 0 additions & 1 deletion .ci/script/weid-build-tools/build-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ if [ "$TRAVIS_BRANCH" = "master" ];then
cd weid-build-tools/
sed -i -e '$a\org_id=test' run.config
sed -i -e '$a\blockchain_address=$NODE_IP' run.config
sed -i -e '$a\blockchain_fiscobcos_version=1' run.config
chmod u+x compile.sh
./compile.sh
chmod u+x deploy.sh
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### V1.4.1 (2019-11-01)
- Bugfixes:
1. Fixed multiple potential leaks which might cause NPE.
2. Change default deposit signature algorithm when creating PDF to keccak256.
3. Fixed multiple invalid URL links in documentation.
4. Bump lombok to 1.18.10 to be compatible for OpenJDK11.

### V1.4.0 (2019-09-30)
- Features:
1. Supports PDF creation and transportation from CredentialPojo and Presentation.
Expand Down
22 changes: 11 additions & 11 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.0"
version = "1.4.1"

// Specify JDK version - may vary in different scenarios
sourceCompatibility = 1.8
Expand All @@ -57,7 +57,7 @@ repositories {
}

List lombok = [
"org.projectlombok:lombok:1.16.14"
"org.projectlombok:lombok:1.18.10"
]

List logger = [
Expand Down Expand Up @@ -113,7 +113,7 @@ configurations {
}

dependencies {
localDeps 'org.projectlombok:lombok:1.16.14'
localDeps 'org.projectlombok:lombok:1.18.10'
if (gradleVer.startsWith("4")) {
if (!gradle.startParameter.isOffline()) {
compile logger, lombok, apache_commons, json, mysql_driver, zxing, rpc, pdfbox
Expand All @@ -127,20 +127,20 @@ dependencies {
}
if (gradleVer.startsWith("5")) {
if (!gradle.startParameter.isOffline()) {
compileOnly 'org.projectlombok:lombok:1.16.14'
annotationProcessor 'org.projectlombok:lombok:1.16.14'
testAnnotationProcessor 'org.projectlombok:lombok:1.16.14'
testCompileOnly 'org.projectlombok:lombok:1.16.14'
compileOnly 'org.projectlombok:lombok:1.18.10'
annotationProcessor 'org.projectlombok:lombok:1.18.10'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.10'
testCompileOnly 'org.projectlombok:lombok:1.18.10'
compile logger, apache_commons, json, mysql_driver, zxing, rpc, pdfbox
compile("com.webank:weid-contract-java:1.2.9") {
exclude group: "org.slf4j", module: "slf4j-log4j12"
}
testCompile logger, apache_commons, json, junit, jmockit, rpc, pdfbox
} else {
compileOnly files('dist/lib/lombok-1.16.14.jar')
annotationProcessor files('dist/lib/lombok-1.16.14.jar')
testAnnotationProcessor files('dist/lib/lombok-1.16.14.jar')
testCompileOnly files('dist/lib/lombok-1.16.14.jar')
compileOnly files('dist/lib/lombok-1.18.10.jar')
annotationProcessor files('dist/lib/lombok-1.18.10.jar')
testAnnotationProcessor files('dist/lib/lombok-1.18.10.jar')
testCompileOnly files('dist/lib/lombok-1.18.10.jar')
compile fileTree(dir: 'dist/lib', include: '*.jar')
}
}
Expand Down
13 changes: 13 additions & 0 deletions docs/zh_CN/docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,16 @@ Control)。此外,在一个不需要token的区块链世界里,tx.origin
- **我原来的配置文件是applicationContext.xml,现在怎么兼容properties?**

详见\ `从ApplicationContext.xml兼容properties的配置方式 <./from-application-context-to-properties.html>`__\
--------------

- **我使用的是maven方式集成,怎么集成WeID SDK相关依赖?**

请您参考源代码根目录下build.gradle的依赖,按照以下格式添加到您的pom.xml里。添加之前请先确定要使用的SDK版本。

.. code:: shell
<dependency>
<groupId>com.webank</groupId>
<artifactId>weid-java-sdk</artifactId>
<version>1.4.0</version>
</dependency>
2 changes: 1 addition & 1 deletion docs/zh_CN/docs/from-application-context-to-properties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
配置文件
---------

如果您使用上文的 `安装部署工具方式 <https://weidentity.readthedocs.io/projects/buildtools/zh_CN/latest/docs/weidentity-build-tools-doc.html>`_ ,重新部署了智能合约,那么这一部分可以跳过。
如果您使用上文的 `安装部署工具方式 <https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-build-with-deploy.html>`_ ,重新部署了智能合约,那么这一部分可以跳过。

如果您不需要重新部署合约,或不准备使用部署工具,则需要执行以下步骤:

Expand Down
7 changes: 4 additions & 3 deletions docs/zh_CN/docs/how-to-run-unit-test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ LINUX 系统上通过 gradle 执行单元测试
前提条件
~~~~~~~~

单元测试的运行需要提前安装部署好WeIdentity JAVA SDK,请参考 `WeIdentity
JAVA SDK 安装部署文档`_\ 中的源码方式安装部署WeIdentity。
单元测试的运行需要提前安装部署好WeIdentity JAVA SDK,请参考 
`安装部署工具方式 <https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-installation-by-sourcecode.html>`_
中的源码方式安装部署WeIdentity。

流程
~~~~
Expand Down Expand Up @@ -44,4 +45,4 @@ JAVA SDK 安装部署文档`_\ 中的源码方式安装部署WeIdentity。
cd ../../
gradle test
.. _WeIdentity JAVA SDK 安装部署文档: ./weidentity-installation.html#
.. _WeIdentity JAVA SDK 安装部署文档: ./weidentity-installation.html#

0 comments on commit edf8a94

Please sign in to comment.