Skip to content

Commit ad41d86

Browse files
committed
build: restore Maven Wrapper and align maintenance version docs
1 parent f7e9e9d commit ad41d86

5 files changed

Lines changed: 33 additions & 31 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# - push / pull_request on the feature/2.0.x branch
55
# - manual workflow_dispatch
66
#
7-
# Runs `mvn -B clean verify` which includes the JaCoCo coverage gate
7+
# Runs `./mvnw -B clean verify` which includes the JaCoCo coverage gate
88
# (90% line coverage, haltOnFailure=false) configured in the POM.
99
name: CI
1010

@@ -35,7 +35,7 @@ jobs:
3535
cache: maven
3636

3737
- name: Build and verify with JaCoCo coverage gate
38-
run: mvn -B --no-transfer-progress clean verify
38+
run: ./mvnw -B --no-transfer-progress clean verify
3939

4040
- name: Upload JaCoCo coverage report
4141
if: always()

‎.mvn/wrapper/maven-wrapper.jar‎

61.6 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
wrapperVersion=3.3.4
2-
distributionType=only-script
2+
distributionType=bin
33
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.zip

‎README.md‎

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
[English](./README.md) | [简体中文](./README.zh-CN.md)
44

5-
[![Java](https://img.shields.io/badge/Java-21-orange)](https://github.com/easy-4-java/opencli-java-sdk) [![License](https://img.shields.io/badge/license-Apache%202.0-green)](./LICENSE)
5+
[![Java](https://img.shields.io/badge/Java-17-orange)](https://github.com/easy-4-java/opencli-java-sdk) [![License](https://img.shields.io/badge/license-Apache%202.0-green)](./LICENSE)
66

77
Multi-adapter CLI integration SDK for OpenCLI: browser / desktop / public-API adapters, remote agent and center WebSocket
88
[简体中文](./README.zh-CN.md)
99

10-
> **Current branch**: `feature/3.0.x`
11-
> **Version**: `3.0.x.20260630-SNAPSHOT`
12-
> **JDK baseline**: 21
13-
> **Project status**: stable (3.0.x line). Not yet published to Maven Central; artifacts are distributed via the Aliyun Maven repository and GitHub Releases.
10+
> **Maintenance line**: `feature/2.0.x`
11+
> **Version**: `2.0.x.20260630-SNAPSHOT`
12+
> **JDK baseline**: 17
13+
> **Release notes**: [2.0.x.20260630](https://github.com/easy-4-java/opencli-java-sdk/releases/tag/v2.0.x.20260630)
1414
1515
## Table of Contents
1616

@@ -70,11 +70,12 @@ Multi-adapter CLI integration SDK for OpenCLI: browser / desktop / public-API ad
7070

7171
| Component | Version | Notes |
7272
|---|---:|---|
73-
| JDK | 21+ | 1.0.x line baseline |
74-
| commons-exec | — | Local subprocess execution |
75-
| Unirest Java | — | Remote agent HTTP |
76-
| Java-WebSocket | — | Center WebSocket |
77-
| Jackson databind | 2.17.x | JSON parsing |
73+
| JDK | 17+ | 2.0.x line baseline |
74+
| Maven | 3.9.16 | Repository Maven Wrapper version |
75+
| commons-exec | 1.6.0 | Local subprocess execution |
76+
| Unirest Java | 3.14.5 | Remote agent HTTP |
77+
| Java-WebSocket | 1.6.0 | Center WebSocket |
78+
| `com.fasterxml.jackson.core:jackson-databind` | 2.22.1 | JSON parsing |
7879
| SLF4J | 2.0.18 | Logging facade |
7980

8081
Version-line matrix:
@@ -133,14 +134,14 @@ Maven:
133134
<dependency>
134135
<groupId>io.github.easy4j</groupId>
135136
<artifactId>opencli-java-sdk</artifactId>
136-
<version>3.0.x.20260630-SNAPSHOT</version>
137+
<version>2.0.x.20260630-SNAPSHOT</version>
137138
</dependency>
138139
```
139140

140141
Gradle:
141142

142143
```groovy
143-
implementation 'io.github.easy4j:opencli-java-sdk:3.0.x.x.20260630-SNAPSHOT'
144+
implementation 'io.github.easy4j:opencli-java-sdk:2.0.x.20260630-SNAPSHOT'
144145
```
145146

146147
Snapshot builds require an enabled snapshot repository (Aliyun Maven snapshot repository per `distributionManagement` in `pom.xml`).
@@ -241,9 +242,9 @@ mvn clean verify
241242

242243
| Branch | Version pattern | JDK | Maintenance policy |
243244
|---|---|---|---|
244-
| `feature/1.0.x` (this branch) | `1.0.x.*` | 8 | Compatibility fixes and JDK-8-safe dependency upgrades only |
245+
| `feature/1.0.x` | `1.0.x.*` | 8 | Compatibility fixes and JDK-8-safe dependency upgrades only |
245246
| `feature/2.0.x` | `2.0.x.*` | 17 | JDK 17 line |
246-
| `feature/3.0.x` (this branch) | `3.0.x.*` | 21 | JDK 21 line |
247+
| `feature/3.0.x` | `3.0.x.*` | 21 | JDK 21 line |
247248

248249
Branch POMs (JDK and dependency stack per line) are rendered by `scripts/render-branch-pom.py`.
249250

‎README.zh-CN.md‎

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
[English](./README.md) | [简体中文](./README.zh-CN.md)
44

5-
[![Java](https://img.shields.io/badge/Java-21-orange)](https://github.com/easy-4-java/opencli-java-sdk) [![License](https://img.shields.io/badge/license-Apache%202.0-green)](./LICENSE)
5+
[![Java](https://img.shields.io/badge/Java-17-orange)](https://github.com/easy-4-java/opencli-java-sdk) [![License](https://img.shields.io/badge/license-Apache%202.0-green)](./LICENSE)
66

77
面向 OpenCLI 多适配器体系的 Java SDK:browser / desktop / public-api 适配器、远程 Agent 与中心 WebSocket
88

9-
> **当前分支**:`feature/3.0.x`
10-
> **版本**:`3.0.x.20260630-SNAPSHOT`
11-
> **JDK 基线**:21
12-
> **项目状态**:稳定(3.0.x 线)。尚未发布 Maven Central;制品通过 Aliyun Maven 仓库与 GitHub Releases 分发。
9+
> **维护线**:`feature/2.0.x`
10+
> **版本**:`2.0.x.20260630-SNAPSHOT`
11+
> **JDK 基线**:17
12+
> **发布说明**:[2.0.x.20260630](https://github.com/easy-4-java/opencli-java-sdk/releases/tag/v2.0.x.20260630)
1313
1414
## 目录
1515

@@ -69,11 +69,12 @@
6969

7070
| 组件 | 版本 | 说明 |
7171
|---|---:|---|
72-
| JDK | 21+ | 1.0.x 线基线 |
73-
| commons-exec | — | 本地子进程执行 |
74-
| Unirest Java | — | 远程 Agent HTTP |
75-
| Java-WebSocket | — | 中心 WebSocket |
76-
| Jackson databind | 2.17.x | JSON 解析 |
72+
| JDK | 17+ | 2.0.x 线基线 |
73+
| Maven | 3.9.16 | 仓库 Maven Wrapper 版本 |
74+
| commons-exec | 1.6.0 | 本地子进程执行 |
75+
| Unirest Java | 3.14.5 | 远程 Agent HTTP |
76+
| Java-WebSocket | 1.6.0 | 中心 WebSocket |
77+
| `com.fasterxml.jackson.core:jackson-databind` | 2.22.1 | JSON 解析 |
7778
| SLF4J | 2.0.18 | 日志门面 |
7879

7980
版本线矩阵:
@@ -132,14 +133,14 @@ Maven:
132133
<dependency>
133134
<groupId>io.github.easy4j</groupId>
134135
<artifactId>opencli-java-sdk</artifactId>
135-
<version>3.0.x.20260630-SNAPSHOT</version>
136+
<version>2.0.x.20260630-SNAPSHOT</version>
136137
</dependency>
137138
```
138139

139140
Gradle:
140141

141142
```groovy
142-
implementation 'io.github.easy4j:opencli-java-sdk:3.0.x.x.20260630-SNAPSHOT'
143+
implementation 'io.github.easy4j:opencli-java-sdk:2.0.x.20260630-SNAPSHOT'
143144
```
144145

145146
快照版本需要启用对应快照仓库(`pom.xml` 中 `distributionManagement` 指向 Aliyun Maven 仓库)。
@@ -240,9 +241,9 @@ mvn clean verify
240241

241242
| 分支 | 版本模式 | JDK | 维护策略 |
242243
|---|---|---|---|
243-
| `feature/1.0.x`(当前分支) | `1.0.x.*` | 8 | 仅接受兼容性修复与 JDK 8 安全的依赖升级 |
244+
| `feature/1.0.x` | `1.0.x.*` | 8 | 仅接受兼容性修复与 JDK 8 安全的依赖升级 |
244245
| `feature/2.0.x` | `2.0.x.*` | 17 | JDK 17 线 |
245-
| `feature/3.0.x`(当前分支) | `3.0.x.*` | 21 | JDK 21 线 |
246+
| `feature/3.0.x` | `3.0.x.*` | 21 | JDK 21 线 |
246247

247248
各分支 POM(JDK 与依赖栈随线变化)由 `scripts/render-branch-pom.py` 渲染。
248249

0 commit comments

Comments
 (0)