|
8 | 8 | <description>OpenCode Java SDK - JDK 17 line</description> |
9 | 9 | <version>2.0.x.20260730-SNAPSHOT</version> |
10 | 10 | <packaging>jar</packaging> |
11 | | - |
12 | 11 | <!-- 开源协议采用 Apache 2.0 协议 --> |
13 | 12 | <licenses> |
14 | 13 | <license> |
15 | 14 | <name>The Apache Software License, Version 2.0</name> |
16 | 15 | <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> |
17 | 16 | </license> |
18 | 17 | </licenses> |
19 | | - |
20 | 18 | <!-- 源码仓库(SCM)信息 --> |
21 | 19 | <scm> |
22 | 20 | <connection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</connection> |
23 | 21 | <developerConnection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</developerConnection> |
24 | 22 | <url>https://github.com/easy-4-java/${project.artifactId}</url> |
25 | 23 | <tag>${project.artifactId}</tag> |
26 | 24 | </scm> |
27 | | - |
28 | 25 | <!-- 开发者信息 --> |
29 | 26 | <developers> |
30 | 27 | <developer> |
|
37 | 34 | <timezone>+8</timezone> |
38 | 35 | </developer> |
39 | 36 | </developers> |
40 | | - |
41 | 37 | <!-- 制品发布仓库配置(distributionManagement) --> |
42 | 38 | <distributionManagement> |
43 | 39 | <repository> |
|
49 | 45 | <url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-snapshot-3eoov3</url> |
50 | 46 | </snapshotRepository> |
51 | 47 | </distributionManagement> |
52 | | - |
53 | 48 | <!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 --> |
54 | 49 | <properties> |
55 | 50 | <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
|
83 | 78 | <maven-resources-plugin.version>3.5.0</maven-resources-plugin.version> |
84 | 79 | <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
85 | 80 | <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
86 | | - |
87 | 81 | </properties> |
88 | | - |
89 | | - |
90 | 82 | <!-- 依赖版本统一管理(dependencyManagement) --> |
91 | 83 | <dependencyManagement> |
92 | 84 | <dependencies> |
|
139 | 131 | <dependency> |
140 | 132 | <groupId>com.squareup.okhttp3</groupId> |
141 | 133 | <artifactId>okhttp</artifactId> |
142 | | - <version>${okhttp.version}</version> |
| 134 | + <version>${okhttp.version}</version> |
143 | 135 | </dependency> |
144 | 136 | <!-- For OkHttp --> |
145 | 137 | <dependency> |
146 | 138 | <groupId>com.squareup.okhttp3</groupId> |
147 | 139 | <artifactId>okhttp-sse</artifactId> |
148 | | - <version>${okhttp.version}</version> |
| 140 | + <version>${okhttp.version}</version> |
149 | 141 | </dependency> |
150 | 142 | <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/mockwebserver --> |
151 | 143 | <dependency> |
152 | 144 | <groupId>com.squareup.okhttp3</groupId> |
153 | 145 | <artifactId>mockwebserver</artifactId> |
154 | 146 | <scope>test</scope> |
155 | | - <version>${okhttp.version}</version> |
| 147 | + <version>${okhttp.version}</version> |
156 | 148 | </dependency> |
157 | 149 | </dependencies> |
158 | 150 | </dependencyManagement> |
159 | | - |
160 | 151 | <!-- 项目依赖(dependencies) --> |
161 | 152 | <dependencies> |
162 | 153 | <dependency> |
|
207 | 198 | <scope>test</scope> |
208 | 199 | </dependency> |
209 | 200 | </dependencies> |
210 | | - |
211 | 201 | <!-- 构建配置(Build) --> |
212 | 202 | <build> |
213 | 203 | <pluginManagement> |
214 | 204 | <plugins> |
215 | | - |
216 | 205 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-clean-plugin --> |
217 | 206 | <plugin> |
218 | 207 | <!-- 清理插件:清理构建输出目录 --> |
219 | 208 | <groupId>org.apache.maven.plugins</groupId> |
220 | 209 | <artifactId>maven-clean-plugin</artifactId> |
221 | 210 | <version>${maven-clean-plugin.version}</version> |
222 | 211 | </plugin> |
223 | | - |
224 | 212 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
225 | 213 | <plugin> |
226 | 214 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
242 | 230 | </annotationProcessorPaths> |
243 | 231 | </configuration> |
244 | 232 | </plugin> |
245 | | - |
246 | 233 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
247 | 234 | <plugin> |
248 | 235 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
249 | 236 | <groupId>org.apache.maven.plugins</groupId> |
250 | 237 | <artifactId>maven-deploy-plugin</artifactId> |
251 | 238 | <version>${maven-deploy-plugin.version}</version> |
252 | 239 | </plugin> |
253 | | - |
254 | 240 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
255 | 241 | <plugin> |
256 | 242 | <!-- 环境检查插件:代码编译前的环境监察 --> |
|
268 | 254 | <rules> |
269 | 255 | <requireMavenVersion> |
270 | 256 | <message> |
271 | | - You are running an older version of Maven. This application requires at least Maven ${maven.version}. |
272 | | - </message> |
| 257 | + You are running an older version of Maven. This application requires at least Maven ${maven.version}. |
| 258 | + </message> |
273 | 259 | <version>[${maven.version}.0,)</version> |
274 | 260 | </requireMavenVersion> |
275 | 261 | <requireJavaVersion> |
276 | 262 | <message> |
277 | | - You are running an older version of Java. This application requires at least JDK ${java.version}. |
278 | | - </message> |
| 263 | + You are running an older version of Java. This application requires at least JDK ${java.version}. |
| 264 | + </message> |
279 | 265 | <version>[${java.version}.0,)</version> |
280 | 266 | </requireJavaVersion> |
281 | 267 | </rules> |
282 | 268 | </configuration> |
283 | 269 | </execution> |
284 | 270 | </executions> |
285 | 271 | </plugin> |
286 | | - |
287 | 272 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
288 | 273 | <plugin> |
289 | 274 | <!-- 签名插件:对制品进行 PGP 签名 --> |
|
300 | 285 | </execution> |
301 | 286 | </executions> |
302 | 287 | </plugin> |
303 | | - |
304 | 288 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
305 | 289 | <plugin> |
306 | 290 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
307 | 291 | <groupId>org.apache.maven.plugins</groupId> |
308 | 292 | <artifactId>maven-install-plugin</artifactId> |
309 | 293 | <version>${maven-install-plugin.version}</version> |
310 | 294 | </plugin> |
311 | | - |
312 | 295 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
313 | 296 | <plugin> |
314 | 297 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
|
319 | 302 | <encoding>${project.build.sourceEncoding}</encoding> |
320 | 303 | </configuration> |
321 | 304 | </plugin> |
322 | | - |
323 | 305 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
324 | 306 | <plugin> |
325 | 307 | <!-- 发布管理插件:版本发布与标签管理 --> |
|
334 | 316 | <goals>deploy</goals> |
335 | 317 | </configuration> |
336 | 318 | </plugin> |
337 | | - |
338 | 319 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
339 | 320 | <plugin> |
340 | 321 | <!-- 源码插件:发布时自动将源码同时发布 --> |
|
353 | 334 | </execution> |
354 | 335 | </executions> |
355 | 336 | </plugin> |
356 | | - |
357 | 337 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
358 | 338 | <plugin> |
359 | 339 | <!-- 单元测试插件:执行测试用例 --> |
|
375 | 355 | </excludes> |
376 | 356 | </configuration> |
377 | 357 | </plugin> |
378 | | - |
379 | 358 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
380 | 359 | <plugin> |
381 | 360 | <!-- jar 包生成插件:创建项目 jar 包 --> |
|
392 | 371 | </archive> |
393 | 372 | </configuration> |
394 | 373 | </plugin> |
395 | | - |
396 | 374 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
397 | 375 | <plugin> |
398 | 376 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
|
415 | 393 | </execution> |
416 | 394 | </executions> |
417 | 395 | </plugin> |
418 | | - |
419 | 396 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
420 | 397 | <plugin> |
421 | 398 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
432 | 409 | </plugins> |
433 | 410 | </pluginManagement> |
434 | 411 | <plugins> |
435 | | - |
436 | 412 | <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin --> |
437 | 413 | <plugin> |
438 | 414 | <!-- 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) --> |
|
477 | 453 | </execution> |
478 | 454 | </executions> |
479 | 455 | </plugin> |
480 | | - |
481 | 456 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
482 | 457 | <plugin> |
483 | 458 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
500 | 475 | </plugin> |
501 | 476 | </plugins> |
502 | 477 | </build> |
503 | | - |
504 | 478 | <!-- 构建 Profile 配置 --> |
505 | 479 | <profiles> |
506 | 480 | <profile> |
507 | 481 | <id>disable-javadoc-doclint</id> |
508 | 482 | <activation> |
509 | 483 | <jdk>[1.8,)</jdk> |
510 | 484 | </activation> |
511 | | - <properties> |
512 | | - <!-- Dependency versions --> |
513 | | - <additionalparam>-Xdoclint:none -Xlint:unchecked</additionalparam> |
514 | | - |
515 | | - </properties> |
516 | | - |
| 485 | + <properties> |
| 486 | + <!-- Dependency versions --> |
| 487 | + <additionalparam>-Xdoclint:none -Xlint:unchecked</additionalparam> |
| 488 | + </properties> |
517 | 489 | </profile> |
518 | 490 | <!-- 发布到 Maven Central Portal:mvn -Prelease deploy(GPG 签名 + 源码 + Javadoc + Central 发布插件) --> |
519 | | - |
520 | 491 | <profile> |
521 | 492 | <id>release</id> |
522 | 493 | <build> |
523 | 494 | <plugins> |
524 | | - |
525 | 495 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
526 | 496 | <plugin> |
527 | 497 | <!-- 环境检查插件:代码编译前的环境监察 --> |
528 | 498 | <groupId>org.apache.maven.plugins</groupId> |
529 | 499 | <artifactId>maven-enforcer-plugin</artifactId> |
530 | 500 | </plugin> |
531 | | - |
532 | 501 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
533 | 502 | <plugin> |
534 | 503 | <!-- 编译插件:编译主代码至主输出目录 --> |
535 | 504 | <groupId>org.apache.maven.plugins</groupId> |
536 | 505 | <artifactId>maven-compiler-plugin</artifactId> |
537 | 506 | </plugin> |
538 | | - |
539 | 507 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
540 | 508 | <plugin> |
541 | 509 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
542 | 510 | <groupId>org.apache.maven.plugins</groupId> |
543 | 511 | <artifactId>maven-resources-plugin</artifactId> |
544 | 512 | </plugin> |
545 | | - |
546 | 513 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
547 | 514 | <plugin> |
548 | 515 | <!-- 单元测试插件:执行测试用例 --> |
549 | 516 | <groupId>org.apache.maven.plugins</groupId> |
550 | 517 | <artifactId>maven-surefire-plugin</artifactId> |
551 | 518 | </plugin> |
552 | | - |
553 | 519 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
554 | 520 | <plugin> |
555 | 521 | <!-- jar 包生成插件:创建项目 jar 包 --> |
556 | 522 | <groupId>org.apache.maven.plugins</groupId> |
557 | 523 | <artifactId>maven-jar-plugin</artifactId> |
558 | 524 | </plugin> |
559 | | - |
560 | 525 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
561 | 526 | <plugin> |
562 | 527 | <!-- 源码插件:发布时自动将源码同时发布 --> |
563 | 528 | <groupId>org.apache.maven.plugins</groupId> |
564 | 529 | <artifactId>maven-source-plugin</artifactId> |
565 | 530 | </plugin> |
566 | | - |
567 | 531 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
568 | 532 | <plugin> |
569 | 533 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
570 | 534 | <groupId>org.apache.maven.plugins</groupId> |
571 | 535 | <artifactId>maven-javadoc-plugin</artifactId> |
572 | 536 | </plugin> |
573 | | - |
574 | 537 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
575 | 538 | <plugin> |
576 | 539 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
577 | 540 | <groupId>org.apache.maven.plugins</groupId> |
578 | 541 | <artifactId>maven-install-plugin</artifactId> |
579 | 542 | </plugin> |
580 | | - |
581 | 543 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
582 | 544 | <plugin> |
583 | 545 | <!-- 签名插件:对制品进行 PGP 签名 --> |
584 | 546 | <groupId>org.apache.maven.plugins</groupId> |
585 | 547 | <artifactId>maven-gpg-plugin</artifactId> |
586 | 548 | </plugin> |
587 | | - |
588 | 549 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
589 | 550 | <plugin> |
590 | 551 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
591 | 552 | <groupId>org.apache.maven.plugins</groupId> |
592 | 553 | <artifactId>maven-deploy-plugin</artifactId> |
593 | 554 | </plugin> |
594 | | - |
595 | 555 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
596 | 556 | <plugin> |
597 | 557 | <!-- 发布管理插件:版本发布与标签管理 --> |
598 | 558 | <groupId>org.apache.maven.plugins</groupId> |
599 | 559 | <artifactId>maven-release-plugin</artifactId> |
600 | 560 | </plugin> |
601 | | - |
602 | 561 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
603 | 562 | <plugin> |
604 | 563 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
0 commit comments