Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #2

Merged
merged 188 commits into from
Aug 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
7553130
weixin-java-tools usage jodd-http
Apr 18, 2017
30cdad5
weixin-java-tools pay usage jodd-http
Apr 18, 2017
0e6113b
格式化代码
Apr 19, 2017
897e139
jodd
Apr 20, 2017
d476047
mp usage jodd-http
Apr 21, 2017
0b0b5a9
common usage jodd-http
Apr 21, 2017
5726ca9
cp usage jodd-http
Apr 21, 2017
76330ef
装饰模式实现
Apr 22, 2017
9ac1aad
装饰模式实现
Apr 22, 2017
b03cb4b
添加了注释
Apr 22, 2017
fe61393
少提交一个
Apr 22, 2017
2019115
gradle配置信息
Apr 22, 2017
dbf0a15
weixin-java-parent pom.xml添加jodd-http
Apr 24, 2017
49f9787
1、提取了公共代码,添加AbstractWxMPService、AbstractWxCPService类
Apr 27, 2017
ffa3544
1、提取了公共代码,添加AbstractWxMPService、AbstractWxCPService类
Apr 27, 2017
44cbf65
Merge branch 'develop' into develop
crskyp Apr 27, 2017
d01d372
修改了冲突和错误
Apr 27, 2017
f42b22f
WxCpService添加getWxMpConfigStorage方法,同时修改相关位置
Apr 27, 2017
57e1f09
WxCpService的getWxMpConfigStorage方法修改为getWxCpConfigStorage
Apr 27, 2017
4f900f8
添加httpType枚举
Apr 29, 2017
a8dfccc
Merge branch 'develop' of https://github.com/Wechat-Group/weixin-java…
Apr 29, 2017
2384b4b
添加枚举HttpType
May 3, 2017
6b7c86d
添加枚举HttpType
May 3, 2017
59fc913
okhttp使用方式有错误,body().toString()修改为body().string()
May 4, 2017
aa4c076
1、删除AbstractWxMpService、AbstractWxCPService类
May 4, 2017
26d68cd
RequestExecutor实例修改为通过create方法构建,解决了必须同时引入apache-http、jodd-http、okhtt…
May 6, 2017
adcff4e
pom添developer
May 8, 2017
fcf3dbc
Merge remote-tracking branch 'wechat/develop' into develop
May 8, 2017
49d07fc
Update contribution.md
binarywang May 9, 2017
3757606
Merge remote-tracking branch 'remotes/wechat/develop' into develop
May 19, 2017
16dea38
修改两个文件
May 19, 2017
9d2fb9f
完善微信支付 下载对账单 的接口 #65
DDLeEHi May 24, 2017
d108366
修复代码
binarywang May 24, 2017
3661018
修复代码
binarywang May 24, 2017
655b2c3
格式化代码
binarywang May 26, 2017
d961047
修复企业号菜单创建接口方法的bug
binarywang May 27, 2017
c017278
增加默认接口实现类,兼容之前版本
binarywang May 27, 2017
7f08a9e
优化pom,尽量减少不必要的依赖
binarywang May 27, 2017
4f41aa7
调整部分依赖版本,修复编译失败问题
binarywang May 27, 2017
a96e6f3
调整部分依赖版本,修复编译失败问题
binarywang May 27, 2017
46d94db
修复单元测试代码中对junit的依赖
binarywang May 27, 2017
8d5b41c
refactor code
binarywang May 29, 2017
ae8b2ef
refactor code
binarywang May 29, 2017
0ba2684
修复WxMpInRedisConfigStorage在极端情况下的问题 #229
binarywang May 29, 2017
c924e36
Update readme.md
binarywang May 29, 2017
0082572
WxMpXmlMessage微信推送卡券库存报警事件增加缺失的消息数据 #218
binarywang May 29, 2017
290bed1
WxMpXmlMessage微信推送会员卡内容更新事件增加缺失的消息数据 #216
binarywang May 29, 2017
e186cd9
调整注释内容 #215
binarywang May 29, 2017
c80621c
WxMpXmlMessage微信推送用户卡券买单事件增加缺失的消息数据 #214
binarywang May 29, 2017
ac257dd
修复调用【上传临时素材文件】接口返回 44001 多媒体文件为空的问题 #209
binarywang May 29, 2017
a436e62
抽取卡券相关接口请求URL到其接口类中 #195
binarywang May 29, 2017
931533c
抽取数据统计相关接口请求URL到其接口类中,并重构重复代码 #195
binarywang May 29, 2017
355f64c
发布临时测试版本2.6.2.BETA
binarywang May 29, 2017
4cf3f5c
remove useless gradle files
binarywang May 29, 2017
4f93fde
Update pom.xml
binarywang May 29, 2017
f633a77
Delete build.gradle
binarywang May 29, 2017
c8e4d0c
Delete settings.gradle
binarywang May 29, 2017
69ca699
加强检查支付配置
binarywang May 30, 2017
592af1c
Update readme.md
binarywang May 30, 2017
7f91ba2
jodd response 编码设置为UTF-8
Jun 3, 2017
3b7c0a7
Merge pull request #241 from crskyp/develop
crskyp Jun 3, 2017
39a07f2
Update contribution.md
binarywang Jun 5, 2017
5b0b32a
Update contribution.md
binarywang Jun 5, 2017
ff2caf7
WxPayUnifiedOrderRequest里的builder类添加新增加的两个子服务商的属性
binarywang Jun 5, 2017
ea13197
新增接口:摇一摇周边获取设备及用户信息 (#243)
rememberber Jun 6, 2017
92c8a86
引入WxPayException,替代原有的异常处理类,并做相应的优化
binarywang Jun 6, 2017
cc33de3
update some files
binarywang Jun 6, 2017
563302e
消息路由器路由时可以传入context (#245)
Jun 7, 2017
228b379
#247 统一下单接口支持H5支付,并去掉交易类型trade_type的校验
binarywang Jun 10, 2017
8ed0e78
#246 修复企业号用户信息相关属性,对比实际接口返回内容,移除已失效属性(weixinid、tel),添加缺失的属性(telephone…
binarywang Jun 10, 2017
707d9b0
发布临时测试版本2.6.3.BETA
binarywang Jun 10, 2017
e3c5dd6
Create readme.md
binarywang Jun 10, 2017
23a8afe
Create readme.md
binarywang Jun 10, 2017
c1967bc
Merge branch 'master' into develop
binarywang Jun 10, 2017
26272bb
refactor some packages and class files name
binarywang Jun 10, 2017
0fe431f
生成sha1签名时,加入参数判断
binarywang Jun 10, 2017
975cfda
生成sha1签名时,加入参数判断
binarywang Jun 10, 2017
787a4cc
#244 修复下载多媒体文件报错的问题
binarywang Jun 10, 2017
9c0e9e4
检查签名时,如果有异常打印出日志
binarywang Jun 10, 2017
007e736
fix some code
binarywang Jun 10, 2017
ee51156
Create contribution.md
binarywang Jun 11, 2017
b2f8ee1
#248 httpclient请求时忽略掉对服务器端证书的校验,以避免某些情况下微信请求会出现40029或443 failed to re…
binarywang Jun 13, 2017
5986fbb
单元测试增加缺少的logback依赖
binarywang Jun 13, 2017
3467010
Add files via upload
binarywang Jun 14, 2017
f6623b6
update
binarywang Jun 14, 2017
e241de6
update
binarywang Jun 14, 2017
02793bd
update
binarywang Jun 14, 2017
a8fbf3c
update
binarywang Jun 14, 2017
4c03373
支付结果通知类优化
binarywang Jun 15, 2017
0546e00
fix logback-test.xml
binarywang Jun 15, 2017
39e79a2
minor change
binarywang Jun 15, 2017
1bd9b15
#193 增加小程序模块weixin-java-miniapp,支持小程序后台开发
binarywang Jun 15, 2017
fd5b077
发布临时测试版本2.6.5.BETA
binarywang Jun 15, 2017
b81f74f
update
binarywang Jun 15, 2017
9eb4ccf
小程序增加素材类型常量
binarywang Jun 16, 2017
166f842
update
binarywang Jun 17, 2017
87687b3
实现获取仿真测试系统的验签密钥的API #206
binarywang Jun 18, 2017
ec4bf26
修复微信支付请求某些接口在某些情况下会出现乱码的情况 #225
binarywang Jun 18, 2017
c7ffff0
#251 微信支付证书文件路径配置支持classpath开头的地址
binarywang Jun 18, 2017
babfc90
update
binarywang Jun 20, 2017
e2659b3
Update readme.md
binarywang Jun 20, 2017
aded340
#253 修改企业号发送消息的messageSend方法,增加返回值,方便客户端进行自行处理
binarywang Jun 22, 2017
239b8c5
修改logback配置
binarywang Jun 24, 2017
49cf402
调整企业号message相关类的包位置
binarywang Jun 24, 2017
899d037
调整企业号message相关类的包位置
binarywang Jun 24, 2017
a90628c
调整企业号config相关类的包位置
binarywang Jun 24, 2017
6b1b7f1
重构企业号代码
binarywang Jun 24, 2017
e6c8010
清理简化代码
binarywang Jun 25, 2017
17d65ee
修复单元测试
binarywang Jun 25, 2017
0f0f7bb
统一日志格式
binarywang Jun 25, 2017
9f4a7a7
优化重构企业号相关代码,修复了升级企业微信后出现的菜单问题和用户管理的问题
binarywang Jun 25, 2017
3af4c5c
更改版本号为2.7.0正式版本
binarywang Jun 26, 2017
07e8ffa
Merge branch 'master' into develop
binarywang Jun 26, 2017
491095f
Merge branch 'develop'
binarywang Jun 26, 2017
b401be5
update versions
binarywang Jun 26, 2017
f72e60f
Update readme.md
binarywang Jun 26, 2017
754384f
Update readme.md
binarywang Jun 26, 2017
7311463
jodd-http对于微信支付来说是必须依赖项
binarywang Jun 27, 2017
9771977
WxPayUnifiedOrderRequest 增加默认构造方法
binarywang Jun 27, 2017
0de1c72
#257 微信支付申请退款接口增加refund_desc属性
binarywang Jun 27, 2017
12eaa5b
#255 服务商模式下统一下单接口增加sub_openid字段
binarywang Jun 27, 2017
518d1d6
发布临时测试版本2.7.1.BETA
binarywang Jun 27, 2017
ed7f97e
#260 修复小程序发送模版消息接口的问题,并重新整理javadoc
binarywang Jun 29, 2017
d6bb355
#260 修复小程序发送模版消息接口的问题,并重新整理javadoc
binarywang Jun 29, 2017
57f5cf3
修复错误的javadoc
binarywang Jun 30, 2017
9a928f2
fix test case
binarywang Jun 30, 2017
c494fbe
微信支付证书路径判断代码优化
binarywang Jun 30, 2017
61d9331
优化微信支付请求代码
binarywang Jun 30, 2017
ca52260
发布临时测试版本2.7.2.BETA
binarywang Jul 2, 2017
131402f
#265 几个NewsBuilder支持直接设置Article或Item对象列表
binarywang Jul 2, 2017
22344eb
#256 企业微信发送消息增加文本卡片消息的支持
binarywang Jul 2, 2017
554fd08
#195 抽取素材管理请求URL到常量类中
binarywang Jul 2, 2017
eaad636
#252 原有图文素材管理接口增加留言管理所需两个参数:need_open_comment 和 only_fans_can_comment
binarywang Jul 2, 2017
b12a7a8
修复微信支付回调sign校验错误的bug (#266)
jink2005 Jul 3, 2017
04e115c
优化javadoc
binarywang Jul 3, 2017
d7b32d2
fix time
binarywang Jul 3, 2017
8217168
优化javadoc
binarywang Jul 3, 2017
1352d72
发布临时测试版本2.7.3.BETA
binarywang Jul 3, 2017
55cfcb9
修复一些打包时发现的不规范的javadoc
binarywang Jul 3, 2017
8dc2b4d
#268 修复WxCpUserServiceImpl删除用户的接口问题
binarywang Jul 5, 2017
15d7773
完善异常输出
binarywang Jul 6, 2017
368dbc9
fix javadoc
binarywang Jul 6, 2017
e9f5566
修改单元测试日志输出配置
binarywang Jul 6, 2017
dde7c64
#269 修复okhttp实现素材上传时的问题
binarywang Jul 6, 2017
fd4b8e1
让httpclient支持slf4j日志输出
binarywang Jul 6, 2017
b3f50e2
add maven-checkstyle-plugin
binarywang Jul 6, 2017
24b954e
Update .codeclimate.yml
binarywang Jul 6, 2017
812190a
Update .travis.yml
binarywang Jul 6, 2017
c5dcb70
Merge branch 'master' into develop
binarywang Jul 6, 2017
c5c204b
#270 NewArticle和MpnewsArticle实现序列化接口
binarywang Jul 8, 2017
d3c691a
微信支付接口请求增加超时时间的设置参数
binarywang Jul 8, 2017
c3cb050
优化简化微信支付请求代码
binarywang Jul 8, 2017
1cd6618
发布临时测试版本2.7.4.BETA
binarywang Jul 8, 2017
166e54c
微信支付模块调整,跟其他模块保持统一,默认使用apache httpclient
binarywang Jul 8, 2017
57f3755
#68 实现获取公众号的自动回复规则的接口
binarywang Jul 8, 2017
f76f9f5
#272 统一下单接口增加H5支付必须的参数scene_info
binarywang Jul 11, 2017
fae2940
发布临时测试版本2.7.5.BETA
binarywang Jul 11, 2017
55c71a9
update travis settings
binarywang Jul 14, 2017
687093f
#279 统一下单接口参数对象WxPayUnifiedOrderRequest增加fingerprint属性
binarywang Jul 15, 2017
3a2efdd
新增会员卡相关接口 (#280)
mgcnrx11 Jul 15, 2017
c8c51a9
#178 实现发送代金券接口
binarywang Jul 15, 2017
22287a4
#281 消息路由器增加对EventKey正则表达式匹配的支持
binarywang Jul 15, 2017
9368177
增加会员卡管理服务的`更新会员信息`接口的实现 (#283)
mgcnrx11 Jul 15, 2017
9f669df
#178 实现查询代金券批次和信息的接口
binarywang Jul 15, 2017
66c7ae3
发布临时测试版本2.7.6.BETA
binarywang Jul 15, 2017
2b7dd7a
修复上传文件时的乱码问题
binarywang Jul 20, 2017
1886c6b
#284 提取共同代码快,修复签名问题
binarywang Jul 20, 2017
b9c9b84
#287 修复对帐单下载bug,返回的对象没有对帐单对象
lwxian Jul 21, 2017
30b5a9a
#289 增加临时二维码的场景值支持字符串的接口
Jul 26, 2017
087f037
#292 增加小程序码支持
forfuns Jul 27, 2017
9455165
完善优化调试企业付款接口
binarywang Jul 27, 2017
0a06c4d
#293 重构OkHttp的实现代码,同时修复JSApi的bug
dylanleung Jul 31, 2017
70d90c8
非法参数的异常统一使用WxPayException
binarywang Jul 31, 2017
2d9d392
发布临时测试版本2.7.7.BETA
binarywang Jul 31, 2017
5a2b3b6
#295 修复临时文件关闭
dylanleung Jul 31, 2017
afcd62c
#297 WxMpMenu类增加实现序列化接口
rememberber Aug 1, 2017
289405f
#298 WxMpMenu的内部类WxMpConditionalMenu增加实现序列化接口
rememberber Aug 1, 2017
9e32f00
#302 WxMpXmlOutNewsMessage类中的内部类增加实现序列化接口
rememberber Aug 8, 2017
6ce585f
DefaultApacheHttpClientBuilder修改为单例模式 (#310)
Aug 10, 2017
69ebad5
#300 修复微信多媒体文件没有后缀名时下载失败的问题
binarywang Aug 11, 2017
67dad47
#305 修复微信变态的拍照或发图事件的消息格式的处理
binarywang Aug 14, 2017
1d1c4c7
发布临时测试版本2.7.8.BETA
binarywang Aug 14, 2017
a8cdb44
修正不规范的类命名
binarywang Aug 14, 2017
9140425
添加buttons的getter和setter方法
binarywang Aug 16, 2017
af4bb1d
修复错误的javadoc
binarywang Aug 16, 2017
92947b3
转移群发消息相关接口到单独接口及其实现类中
binarywang Aug 16, 2017
f0d3a1a
#315 修改messageSend方法,自动从wxCpConfigStorage获取agentId
forfuns Aug 17, 2017
bf1ce7f
#317 修复小程序请求二维码时对错误类型检查(text/plain 改为 app/json)
forfuns Aug 18, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ engines:
ratings:
paths: []
exclude_paths:
- "README.md"
- "readme.md"
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
language: java
sudo: false
install: true
addons:
sonarqube:
token:
secure: "834110c7191f97ecb226970c46dcaff8e681da5a"
#sudo: false
#install: true
#addons:
# sonarcloud:
# token:
# secure: "834110c7191f97ecb226970c46dcaff8e681da5a"

jdk:
- oraclejdk8
#script: "mvn clean package -Dmaven.test.skip=true"
script: "mvn clean package -Dmaven.test.skip=true"

script:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
#script:
# - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar

branches:
only:
Expand All @@ -20,7 +20,7 @@ branches:
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
# - '$HOME/.sonar/cache'

notifications:
email:
Expand Down
Binary file added alipay_qrcode.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 0 additions & 33 deletions build.gradle

This file was deleted.

10 changes: 6 additions & 4 deletions contribution.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# 代码贡献指南
1. 非常欢迎和感谢对本项目发起Pull Request的同学,本项目代码风格为使用2个空格代表一个Tab,因此在提交代码时请注意一下,否则很容易在IDE格式化代码后与原代码产生大量diff,这样会给其他人阅读代码带来极大的困扰。为了便于设置,本项目引入editorconfig插件,请使用eclipse的同学在贡献代码前安装相关插件,IntelliJ IDEA新版本自带支持,如果没有可自行安装插件。
1. 首先非常欢迎和感谢对本项目发起Pull Request的同学。
1. 本项目代码风格为使用2个空格代表一个Tab,因此在提交代码时请注意一下,否则很容易在IDE格式化代码后与原代码产生大量diff,这样会给其他人阅读代码带来极大的困扰。
1. 为了便于设置,本项目引入editorconfig支持,请使用Eclipse的同学在贡献代码前安装相关插件,而IntelliJ IDEA新版本自带支持,如果没有可自行安装插件。
1. **提交代码前,请检查代码是否已经格式化,并且保证新增加或者修改的方法都有完整的参数说明,而public方法必须拥有相应的单元测试并通过测试。**
1. 本项目可以采用两种方式接受代码贡献:
* 第一种就是基于[Git Flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)开发流程,因此在发起Pull Request的时候请选择develop分支,详细步骤参考后文。
* 另外一种贡献代码的方式就是加入SDK Developers开发组,前提是对自己的代码足够自信就可以申请加入,加入之后可以随时直接提交代码,但要注意对所做的修改或新增的代码进行单元测试,保证提交代码没有明显问题,具体加入方式,请咨询QQ群管理员[![点击这里给我发消息](http://wpa.qq.com/pa?p=2:1211415707:51)](http://wpa.qq.com/msgrd?v=3&uin=1211415707&site=qq&menu=yes)。

- 第一种就是基于[Git Flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)开发流程,因此在发起Pull Request的时候请选择develop分支,详细步骤参考后文,推荐使用此种方式贡献代码。
- (***暂停此种方式,请使用第一种***)另外一种贡献代码的方式就是加入SDK Developers开发组,前提是对自己的代码足够自信就可以申请加入,加入之后可以随时直接提交代码,但要注意对所做的修改或新增的代码进行单元测试,保证提交代码没有明显问题。

### PR方式贡献代码步骤
* 在 GitHub 上 `fork` 到自己的仓库,如 `my_user/weixin-java-tools`,然后 `clone` 到本地,并设置用户信息。
Expand Down
183 changes: 105 additions & 78 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-parent</artifactId>
<version>2.6.1.BETA</version>
<version>2.7.8.BETA</version>
<packaging>pom</packaging>
<name>WeiXin Java Tools - Parent</name>
<description>微信公众号、企业号上级POM</description>
Expand Down Expand Up @@ -93,6 +93,7 @@
<module>weixin-java-cp</module>
<module>weixin-java-mp</module>
<module>weixin-java-pay</module>
<module>weixin-java-miniapp</module>
<!--module>weixin-java-osgi</module-->
</modules>

Expand All @@ -104,85 +105,90 @@
<downloadJavadocs>true</downloadJavadocs>
<downloadSources>true</downloadSources>
<httpclient.version>4.5</httpclient.version>
<slf4j.version>1.7.10</slf4j.version>
<logback.version>1.1.2</logback.version>
<gson.version>2.7</gson.version>
<guava.version>19.0</guava.version>
<commons-lang3.version>3.5</commons-lang3.version>
<commons-io.version>2.5</commons-io.version>
<commons-codec.version>1.10</commons-codec.version>
<jetty.version>9.3.0.RC0</jetty.version>
<jedis.version>2.9.0</jedis.version>
<!-- 由于较新的3.8版本需要jdk8,故而此处采用较低版本 -->
<jodd-http.version>3.7</jodd-http.version>
</properties>

<dependencies>
<dependency>
<groupId>org.jodd</groupId>
<artifactId>jodd-http</artifactId>
<version>${jodd-http.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.7.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.9</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons-codec.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>qrcode-utils</artifactId>
<version>1.1</version>
</dependency>
<!-- 由于jodd-http较新的3.8版本需要jdk8,故而此处采用较低版本 -->
<dependency>
<groupId>org.jodd</groupId>
<artifactId>jodd-http</artifactId>
<version>3.7.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.7.0</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.24</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.9</version>
</dependency>
<!-- 由于guava较新的21.0版本需要jdk8,故而此处采用较低版本 -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.0</version>
</dependency>

<!-- 测试所用依赖 -->
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.9.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
Expand All @@ -192,7 +198,7 @@
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8.7</version>
<version>6.10</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -216,7 +222,8 @@
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis.version}</version>
<version>2.9.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down Expand Up @@ -281,7 +288,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<version>1.7-SNAPSHOT</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down Expand Up @@ -342,6 +349,26 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<configuration>
<configLocation>quality-checks/google_checks.xml</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Loading