|
8 | 8 | <description>OpenCode Java SDK - JDK 1.8 line</description> |
9 | 9 | <version>1.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 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
241 | 229 | </annotationProcessorPaths> |
242 | 230 | </configuration> |
243 | 231 | </plugin> |
244 | | - |
245 | 232 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
246 | 233 | <plugin> |
247 | 234 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
248 | 235 | <groupId>org.apache.maven.plugins</groupId> |
249 | 236 | <artifactId>maven-deploy-plugin</artifactId> |
250 | 237 | <version>${maven-deploy-plugin.version}</version> |
251 | 238 | </plugin> |
252 | | - |
253 | 239 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
254 | 240 | <plugin> |
255 | 241 | <!-- 环境检查插件:代码编译前的环境监察 --> |
|
267 | 253 | <rules> |
268 | 254 | <requireMavenVersion> |
269 | 255 | <message> |
270 | | - You are running an older version of Maven. This application requires at least Maven ${maven.version}. |
271 | | - </message> |
| 256 | + You are running an older version of Maven. This application requires at least Maven ${maven.version}. |
| 257 | + </message> |
272 | 258 | <version>[${maven.version}.0,)</version> |
273 | 259 | </requireMavenVersion> |
274 | 260 | <requireJavaVersion> |
275 | 261 | <message> |
276 | | - You are running an older version of Java. This application requires at least JDK ${java.version}. |
277 | | - </message> |
| 262 | + You are running an older version of Java. This application requires at least JDK ${java.version}. |
| 263 | + </message> |
278 | 264 | <version>[${java.version}.0,)</version> |
279 | 265 | </requireJavaVersion> |
280 | 266 | </rules> |
281 | 267 | </configuration> |
282 | 268 | </execution> |
283 | 269 | </executions> |
284 | 270 | </plugin> |
285 | | - |
286 | 271 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
287 | 272 | <plugin> |
288 | 273 | <!-- 签名插件:对制品进行 PGP 签名 --> |
|
299 | 284 | </execution> |
300 | 285 | </executions> |
301 | 286 | </plugin> |
302 | | - |
303 | 287 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
304 | 288 | <plugin> |
305 | 289 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
306 | 290 | <groupId>org.apache.maven.plugins</groupId> |
307 | 291 | <artifactId>maven-install-plugin</artifactId> |
308 | 292 | <version>${maven-install-plugin.version}</version> |
309 | 293 | </plugin> |
310 | | - |
311 | 294 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
312 | 295 | <plugin> |
313 | 296 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
|
318 | 301 | <encoding>${project.build.sourceEncoding}</encoding> |
319 | 302 | </configuration> |
320 | 303 | </plugin> |
321 | | - |
322 | 304 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
323 | 305 | <plugin> |
324 | 306 | <!-- 发布管理插件:版本发布与标签管理 --> |
|
333 | 315 | <goals>deploy</goals> |
334 | 316 | </configuration> |
335 | 317 | </plugin> |
336 | | - |
337 | 318 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
338 | 319 | <plugin> |
339 | 320 | <!-- 源码插件:发布时自动将源码同时发布 --> |
|
352 | 333 | </execution> |
353 | 334 | </executions> |
354 | 335 | </plugin> |
355 | | - |
356 | 336 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
357 | 337 | <plugin> |
358 | 338 | <!-- 单元测试插件:执行测试用例 --> |
|
374 | 354 | </excludes> |
375 | 355 | </configuration> |
376 | 356 | </plugin> |
377 | | - |
378 | 357 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
379 | 358 | <plugin> |
380 | 359 | <!-- jar 包生成插件:创建项目 jar 包 --> |
|
391 | 370 | </archive> |
392 | 371 | </configuration> |
393 | 372 | </plugin> |
394 | | - |
395 | 373 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
396 | 374 | <plugin> |
397 | 375 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
|
414 | 392 | </execution> |
415 | 393 | </executions> |
416 | 394 | </plugin> |
417 | | - |
418 | 395 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
419 | 396 | <plugin> |
420 | 397 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
431 | 408 | </plugins> |
432 | 409 | </pluginManagement> |
433 | 410 | <plugins> |
434 | | - |
435 | 411 | <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin --> |
436 | 412 | <plugin> |
437 | 413 | <!-- 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) --> |
|
476 | 452 | </execution> |
477 | 453 | </executions> |
478 | 454 | </plugin> |
479 | | - |
480 | 455 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
481 | 456 | <plugin> |
482 | 457 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
499 | 474 | </plugin> |
500 | 475 | </plugins> |
501 | 476 | </build> |
502 | | - |
503 | 477 | <!-- 构建 Profile 配置 --> |
504 | 478 | <profiles> |
505 | 479 | <profile> |
506 | 480 | <id>disable-javadoc-doclint</id> |
507 | 481 | <activation> |
508 | 482 | <jdk>[1.8,)</jdk> |
509 | 483 | </activation> |
510 | | - <properties> |
511 | | - <!-- Dependency versions --> |
512 | | - <additionalparam>-Xdoclint:none -Xlint:unchecked</additionalparam> |
513 | | - |
514 | | - </properties> |
515 | | - |
| 484 | + <properties> |
| 485 | + <!-- Dependency versions --> |
| 486 | + <additionalparam>-Xdoclint:none -Xlint:unchecked</additionalparam> |
| 487 | + </properties> |
516 | 488 | </profile> |
517 | 489 | <!-- 发布到 Maven Central Portal:mvn -Prelease deploy(GPG 签名 + 源码 + Javadoc + Central 发布插件) --> |
518 | | - |
519 | 490 | <profile> |
520 | 491 | <id>release</id> |
521 | 492 | <build> |
522 | 493 | <plugins> |
523 | | - |
524 | 494 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
525 | 495 | <plugin> |
526 | 496 | <!-- 环境检查插件:代码编译前的环境监察 --> |
527 | 497 | <groupId>org.apache.maven.plugins</groupId> |
528 | 498 | <artifactId>maven-enforcer-plugin</artifactId> |
529 | 499 | </plugin> |
530 | | - |
531 | 500 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
532 | 501 | <plugin> |
533 | 502 | <!-- 编译插件:编译主代码至主输出目录 --> |
534 | 503 | <groupId>org.apache.maven.plugins</groupId> |
535 | 504 | <artifactId>maven-compiler-plugin</artifactId> |
536 | 505 | </plugin> |
537 | | - |
538 | 506 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
539 | 507 | <plugin> |
540 | 508 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
541 | 509 | <groupId>org.apache.maven.plugins</groupId> |
542 | 510 | <artifactId>maven-resources-plugin</artifactId> |
543 | 511 | </plugin> |
544 | | - |
545 | 512 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
546 | 513 | <plugin> |
547 | 514 | <!-- 单元测试插件:执行测试用例 --> |
548 | 515 | <groupId>org.apache.maven.plugins</groupId> |
549 | 516 | <artifactId>maven-surefire-plugin</artifactId> |
550 | 517 | </plugin> |
551 | | - |
552 | 518 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
553 | 519 | <plugin> |
554 | 520 | <!-- jar 包生成插件:创建项目 jar 包 --> |
555 | 521 | <groupId>org.apache.maven.plugins</groupId> |
556 | 522 | <artifactId>maven-jar-plugin</artifactId> |
557 | 523 | </plugin> |
558 | | - |
559 | 524 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
560 | 525 | <plugin> |
561 | 526 | <!-- 源码插件:发布时自动将源码同时发布 --> |
562 | 527 | <groupId>org.apache.maven.plugins</groupId> |
563 | 528 | <artifactId>maven-source-plugin</artifactId> |
564 | 529 | </plugin> |
565 | | - |
566 | 530 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
567 | 531 | <plugin> |
568 | 532 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
569 | 533 | <groupId>org.apache.maven.plugins</groupId> |
570 | 534 | <artifactId>maven-javadoc-plugin</artifactId> |
571 | 535 | </plugin> |
572 | | - |
573 | 536 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
574 | 537 | <plugin> |
575 | 538 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
576 | 539 | <groupId>org.apache.maven.plugins</groupId> |
577 | 540 | <artifactId>maven-install-plugin</artifactId> |
578 | 541 | </plugin> |
579 | | - |
580 | 542 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
581 | 543 | <plugin> |
582 | 544 | <!-- 签名插件:对制品进行 PGP 签名 --> |
583 | 545 | <groupId>org.apache.maven.plugins</groupId> |
584 | 546 | <artifactId>maven-gpg-plugin</artifactId> |
585 | 547 | </plugin> |
586 | | - |
587 | 548 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
588 | 549 | <plugin> |
589 | 550 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
590 | 551 | <groupId>org.apache.maven.plugins</groupId> |
591 | 552 | <artifactId>maven-deploy-plugin</artifactId> |
592 | 553 | </plugin> |
593 | | - |
594 | 554 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
595 | 555 | <plugin> |
596 | 556 | <!-- 发布管理插件:版本发布与标签管理 --> |
597 | 557 | <groupId>org.apache.maven.plugins</groupId> |
598 | 558 | <artifactId>maven-release-plugin</artifactId> |
599 | 559 | </plugin> |
600 | | - |
601 | 560 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
602 | 561 | <plugin> |
603 | 562 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
0 commit comments