Skip to content

Commit c17b682

Browse files
committed
chore(build): 更新项目构建配置和依赖版本
- 更新项目版本号从 2.3.x.20260605-SNAPSHOT 到 2.3.x.20260615-SNAPSHOT - 启用单元测试执行并将 maven-surefire-plugin 配置中的 skip 和 skipTests 设置为 false - 移除过时的 JVM 参数配置,保留 -Xmx1024m 和文件编码设置 - 升级 maven-compiler-plugin 版本从 3.7.0 到 3.13.0 - 升级 maven-surefire-plugin 版本从 2.22.1 到 3.2.5 - 更新 .gitignore 文件以包含更多开发环境和构建产物的忽略规则
1 parent 8e1ebe6 commit c17b682

2 files changed

Lines changed: 102 additions & 31 deletions

File tree

.gitignore

Lines changed: 95 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,95 @@
1-
# Compiled class file
2-
*.class
3-
4-
# Log file
5-
*.log
6-
7-
# BlueJ files
8-
*.ctxt
9-
10-
# Mobile Tools for Java (J2ME)
11-
.mtj.tmp/
12-
13-
# Package Files #
14-
*.jar
15-
*.war
16-
*.nar
17-
*.ear
18-
*.zip
19-
*.tar.gz
20-
*.rar
21-
22-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23-
hs_err_pid*
24-
replay_pid*
1+
target/
2+
bin/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**/target/
5+
!**/src/test/**/target/
6+
.flattened-pom.xml
7+
.fastRequest
8+
Cargo.lock
9+
*.swp
10+
*.swo
11+
12+
### STS ###
13+
.apt_generated
14+
.classpath
15+
.factorypath
16+
.project
17+
.settings
18+
.springBeans
19+
.sts4-cache
20+
rebel.xml
21+
22+
### IntelliJ IDEA ###
23+
.idea
24+
*.iws
25+
*.iml
26+
*.ipr
27+
28+
### NetBeans ###
29+
/nbproject/private/
30+
/nbbuild/
31+
/dist/
32+
/nbdist/
33+
/.nb-gradle/
34+
build/
35+
!**/src/main/**/build/
36+
!**/src/test/**/build/
37+
38+
### VS Code ###
39+
.vscode/
40+
.claude/
41+
42+
### Mac OS ###
43+
.DS_Store
44+
45+
**/dependency-reduced-pom.xml
46+
47+
### Python
48+
__pycache__/
49+
*.py[cod]
50+
*$py.class
51+
*.egg-info/
52+
53+
### Docs
54+
docs/_build
55+
.venv/
56+
57+
58+
# vibe coding
59+
.claude
60+
openspec
61+
AGENTS.md
62+
CLAUDE.md
63+
64+
##Log
65+
logs/
66+
67+
## Frontend (all frontend/ directories across examples and extensions)
68+
# Dependencies
69+
**/node_modules/
70+
# Build output
71+
**/dist/
72+
**/build/
73+
**/.output/
74+
# Vite / bundler caches
75+
**/.vite/
76+
**/.cache/
77+
**/.parcel-cache/
78+
# Type-check / tsc output
79+
**/*.tsbuildinfo
80+
# Env files (may contain secrets)
81+
**/.env.local
82+
**/.env.*.local
83+
# Coverage
84+
**/coverage/
85+
# Storybook
86+
**/storybook-static/
87+
# boba-tea-shop: generated static assets served by the supervisor-agent
88+
**/boba-tea-shop/supervisor-agent/**/static/
89+
90+
##agentscope
91+
.agentscope/
92+
93+
## harness db
94+
**/*.db
95+

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>io.github.hiwepy</groupId>
77
<artifactId>opencode-java-sdk</artifactId>
88
<description>OpenCode Java SDK (HTTP Server + local CLI)</description>
9-
<version>2.3.x.20260605-SNAPSHOT</version>
9+
<version>2.3.x.20260615-SNAPSHOT</version>
1010
<name>${project.groupId}:${project.artifactId}</name>
1111
<url>https://github.com/hiwepy/${project.artifactId}</url>
1212
<packaging>jar</packaging>
@@ -175,14 +175,14 @@
175175
<artifactId>maven-surefire-plugin</artifactId>
176176
<version>${maven-surefire-plugin.version}</version>
177177
<configuration>
178-
<!-- 跳过单元测试 -->
179-
<skip>true</skip>
180-
<skipTests>true</skipTests>
178+
<!-- 执行单元测试 -->
179+
<skip>false</skip>
180+
<skipTests>false</skipTests>
181181
<!-- forkMode 可设置值有 "never", "once", "always" 和 "pertest"。 pretest:
182182
每一个测试创建一个新进程,为每个测试创建新的JVM是单独测试的最彻底方式,但也是最慢的,不适合hudson上持续回归。 once:在一个进程中进行所有测试。once为默认设置,在Hudson上持续回归时建议使用默认设置。
183183
always:在一个进程中并行的运行脚本,Junit4.7以上版本才可以使用,surefire的版本要在2.6以上提供这个功能,其中 threadCount:执行时,指定可分配的线程数量。只和参数parallel配合使用有效。默认:5。 -->
184184
<forkMode>once</forkMode>
185-
<argLine>-Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8</argLine>
185+
<argLine>-Xmx1024m -Dfile.encoding=UTF-8</argLine>
186186
<additionalClasspathElements>
187187
<additionalClasspathElement>${basedir}/target/test-classes</additionalClasspathElement>
188188
</additionalClasspathElements>
@@ -380,7 +380,7 @@
380380
<junit.version>5.11.4</junit.version>
381381

382382
<maven-clean-plugin.version>3.0.0</maven-clean-plugin.version>
383-
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
383+
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
384384
<maven-dependency-plugin.version>3.0.1</maven-dependency-plugin.version>
385385
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
386386
<maven-enforcer-plugin.version>3.0.0-M1</maven-enforcer-plugin.version>
@@ -390,7 +390,7 @@
390390
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
391391
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
392392
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
393-
<maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version>
393+
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
394394
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
395395
<maven-nexus-staging-plugin.version>1.6.8</maven-nexus-staging-plugin.version>
396396
</properties>

0 commit comments

Comments
 (0)