From ba6dd839cba3e9c28cc1da0a8a9183554e4cf128 Mon Sep 17 00:00:00 2001 From: shalousun <836575280@qq.com> Date: Mon, 26 Feb 2024 19:33:59 +0800 Subject: [PATCH] release 3.0.2 --- CHANGELOG.md | 5 ++++- README.md | 2 +- pom.xml | 7 +------ src/main/java/com/ly/doc/utils/TornaUtil.java | 3 +-- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a21ba0b8..c0667f1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ ## smart-doc版本 ### 版本号:3.0.2 -- 更新日期: 2024-2-xx +- 更新日期: 2024-2-26 - 更新内容: 1. 优化推送rpc文档到torna时smart-doc设置的框架名错误,[#690](https://github.com/smart-doc-group/smart-doc/issues/690) 2. 修复html文档搜索后链接错误的bug,[#693](https://github.com/smart-doc-group/smart-doc/pull/693) @@ -22,6 +22,9 @@ 17. 修改高版本smart-doc生成JAX-RS规范项目文档报错问题。[#729](https://github.com/TongchengOpenSource/smart-doc-gradle-plugin/pull/729) 18. 修复内部枚举类作为参数时无法正常解析的问题。[#728](https://github.com/TongchengOpenSource/smart-doc-gradle-plugin/pull/728) 19. 修复void返回时返回用例生成错误。[#726](https://github.com/TongchengOpenSource/smart-doc-gradle-plugin/pull/726) + 20. 修改JAX-RS绑定集合入参报错问题。 [#735](https://github.com/TongchengOpenSource/smart-doc-gradle-plugin/pull/735) + 21. 新增类级别的接口排除过滤。[#736](https://github.com/TongchengOpenSource/smart-doc-gradle-plugin/pull/736) + 22. openapi枚举类型增加取值范围展示[#741](https://github.com/TongchengOpenSource/smart-doc-gradle-plugin/pull/741) ### 版本号:3.0.1 - 更新日期: 2023-12-17 diff --git a/README.md b/README.md index 8bad82d3..d9c8599a 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ need to inject annotations into the code like `Swagger`. - Support the generation of `Jmeter` performance testing scripts - Support for exporting error codes and data dictionary codes to API documentation. - The debug html5 page fully supports file upload and download testing. -- Support `Apache Dubbo RP`C. +- Support `Apache Dubbo RPC`. ## Best Practice diff --git a/pom.xml b/pom.xml index 424b1cfc..f0986a7a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 smart-doc jar - 3.0.1 + 3.0.2 smart-doc https://github.com/TongchengOpenSource/smart-doc.git @@ -78,11 +78,6 @@ org.eclipse.jgit 5.13.2.202306221912-r - - org.apache.commons - commons-collections4 - 4.4 - diff --git a/src/main/java/com/ly/doc/utils/TornaUtil.java b/src/main/java/com/ly/doc/utils/TornaUtil.java index 47b1494f..81a50219 100644 --- a/src/main/java/com/ly/doc/utils/TornaUtil.java +++ b/src/main/java/com/ly/doc/utils/TornaUtil.java @@ -38,7 +38,6 @@ import com.thoughtworks.qdox.JavaProjectBuilder; import com.thoughtworks.qdox.model.JavaMethod; import com.thoughtworks.qdox.model.JavaParameter; -import org.apache.commons.collections4.ListUtils; import org.apache.commons.lang3.StringUtils; import java.util.*; @@ -66,7 +65,7 @@ public static void pushToTorna(TornaApi tornaApi, ApiConfig apiConfig, JavaProje if (tornaApis == null || tornaApis.isEmpty()) { return; } - ListUtils.partition(tornaApis, apiConfig.getApiUploadNums()).forEach(apis -> { + CollectionUtil.partition(tornaApis, apiConfig.getApiUploadNums()).forEach(apis -> { tornaApi.setApis(apis); pushToTornaAll(tornaApi, apiConfig, builder); });