|
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 | <properties> |
42 | 38 | <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
43 | 39 | <java.version>17</java.version> |
44 | 40 | <maven.compiler.release>${java.version}</maven.compiler.release> |
45 | 41 | <maven.version>4.0.0-rc-5</maven.version> |
46 | 42 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
47 | | - |
48 | | - |
49 | 43 | <!-- Dependency versions --> |
50 | 44 | <commons-exec.version>1.4.0</commons-exec.version> |
51 | 45 | <commons-lang.version>2.6</commons-lang.version> |
|
72 | 66 | <maven-resources-plugin.version>3.5.0</maven-resources-plugin.version> |
73 | 67 | <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
74 | 68 | <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
75 | | - |
76 | 69 | </properties> |
77 | | - |
78 | 70 | <dependencyManagement> |
79 | 71 | <dependencies> |
80 | 72 | <!-- For Jackson BOM --> |
|
126 | 118 | <dependency> |
127 | 119 | <groupId>com.squareup.okhttp3</groupId> |
128 | 120 | <artifactId>okhttp</artifactId> |
129 | | - <version>${okhttp.version}</version> |
| 121 | + <version>${okhttp.version}</version> |
130 | 122 | </dependency> |
131 | 123 | <!-- For OkHttp --> |
132 | 124 | <dependency> |
133 | 125 | <groupId>com.squareup.okhttp3</groupId> |
134 | 126 | <artifactId>okhttp-sse</artifactId> |
135 | | - <version>${okhttp.version}</version> |
| 127 | + <version>${okhttp.version}</version> |
136 | 128 | </dependency> |
137 | 129 | <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/mockwebserver --> |
138 | 130 | <dependency> |
139 | 131 | <groupId>com.squareup.okhttp3</groupId> |
140 | 132 | <artifactId>mockwebserver</artifactId> |
141 | 133 | <scope>test</scope> |
142 | | - <version>${okhttp.version}</version> |
| 134 | + <version>${okhttp.version}</version> |
143 | 135 | </dependency> |
144 | 136 | </dependencies> |
145 | 137 | </dependencyManagement> |
146 | | - |
147 | 138 | <dependencies> |
148 | 139 | <dependency> |
149 | 140 | <groupId>io.github.easy4j</groupId> |
|
193 | 184 | <scope>test</scope> |
194 | 185 | </dependency> |
195 | 186 | </dependencies> |
196 | | - |
197 | 187 | <distributionManagement> |
198 | 188 | <repository> |
199 | 189 | <id>2624322-release-6F6h6R</id> |
|
204 | 194 | <url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-snapshot-3eoov3</url> |
205 | 195 | </snapshotRepository> |
206 | 196 | </distributionManagement> |
207 | | - |
208 | 197 | <build> |
209 | 198 | <pluginManagement> |
210 | 199 | <plugins> |
211 | | - |
212 | 200 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-clean-plugin --> |
213 | 201 | <plugin> |
214 | 202 | <!-- 清理插件:清理构建输出目录 --> |
215 | 203 | <groupId>org.apache.maven.plugins</groupId> |
216 | 204 | <artifactId>maven-clean-plugin</artifactId> |
217 | 205 | <version>${maven-clean-plugin.version}</version> |
218 | 206 | </plugin> |
219 | | - |
220 | 207 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
221 | 208 | <plugin> |
222 | 209 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
238 | 225 | </annotationProcessorPaths> |
239 | 226 | </configuration> |
240 | 227 | </plugin> |
241 | | - |
242 | 228 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
243 | 229 | <plugin> |
244 | 230 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
245 | 231 | <groupId>org.apache.maven.plugins</groupId> |
246 | 232 | <artifactId>maven-deploy-plugin</artifactId> |
247 | 233 | <version>${maven-deploy-plugin.version}</version> |
248 | 234 | </plugin> |
249 | | - |
250 | 235 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
251 | 236 | <plugin> |
252 | 237 | <!-- 环境检查插件:代码编译前的环境监察 --> |
|
264 | 249 | <rules> |
265 | 250 | <requireMavenVersion> |
266 | 251 | <message> |
267 | | - You are running an older version of Maven. This application requires at least Maven ${maven.version}. |
268 | | - </message> |
| 252 | + You are running an older version of Maven. This application requires at least Maven ${maven.version}. |
| 253 | + </message> |
269 | 254 | <version>[4.0.0,)</version> |
270 | 255 | </requireMavenVersion> |
271 | 256 | <requireJavaVersion> |
272 | 257 | <message> |
273 | | - You are running an older version of Java. This application requires at least JDK ${java.version}. |
274 | | - </message> |
| 258 | + You are running an older version of Java. This application requires at least JDK ${java.version}. |
| 259 | + </message> |
275 | 260 | <version>[${java.version}.0,)</version> |
276 | 261 | </requireJavaVersion> |
277 | 262 | </rules> |
278 | 263 | </configuration> |
279 | 264 | </execution> |
280 | 265 | </executions> |
281 | 266 | </plugin> |
282 | | - |
283 | 267 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
284 | 268 | <plugin> |
285 | 269 | <!-- 签名插件:对制品进行 PGP 签名 --> |
|
296 | 280 | </execution> |
297 | 281 | </executions> |
298 | 282 | </plugin> |
299 | | - |
300 | 283 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
301 | 284 | <plugin> |
302 | 285 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
303 | 286 | <groupId>org.apache.maven.plugins</groupId> |
304 | 287 | <artifactId>maven-install-plugin</artifactId> |
305 | 288 | <version>${maven-install-plugin.version}</version> |
306 | 289 | </plugin> |
307 | | - |
308 | 290 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
309 | 291 | <plugin> |
310 | 292 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
|
315 | 297 | <encoding>${project.build.sourceEncoding}</encoding> |
316 | 298 | </configuration> |
317 | 299 | </plugin> |
318 | | - |
319 | 300 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
320 | 301 | <plugin> |
321 | 302 | <!-- 发布管理插件:版本发布与标签管理 --> |
|
330 | 311 | <goals>deploy</goals> |
331 | 312 | </configuration> |
332 | 313 | </plugin> |
333 | | - |
334 | 314 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
335 | 315 | <plugin> |
336 | 316 | <!-- 源码插件:发布时自动将源码同时发布 --> |
|
349 | 329 | </execution> |
350 | 330 | </executions> |
351 | 331 | </plugin> |
352 | | - |
353 | 332 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
354 | 333 | <plugin> |
355 | 334 | <!-- 单元测试插件:执行测试用例 --> |
|
371 | 350 | </excludes> |
372 | 351 | </configuration> |
373 | 352 | </plugin> |
374 | | - |
375 | 353 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
376 | 354 | <plugin> |
377 | 355 | <!-- jar 包生成插件:创建项目 jar 包 --> |
|
388 | 366 | </archive> |
389 | 367 | </configuration> |
390 | 368 | </plugin> |
391 | | - |
392 | 369 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
393 | 370 | <plugin> |
394 | 371 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
|
411 | 388 | </execution> |
412 | 389 | </executions> |
413 | 390 | </plugin> |
414 | | - |
415 | 391 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
416 | 392 | <plugin> |
417 | 393 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
428 | 404 | </plugins> |
429 | 405 | </pluginManagement> |
430 | 406 | <plugins> |
431 | | - |
432 | 407 | <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin --> |
433 | 408 | <plugin> |
434 | 409 | <!-- 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) --> |
|
473 | 448 | </execution> |
474 | 449 | </executions> |
475 | 450 | </plugin> |
476 | | - |
477 | 451 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
478 | 452 | <plugin> |
479 | 453 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
496 | 470 | </plugin> |
497 | 471 | </plugins> |
498 | 472 | </build> |
499 | | - |
500 | 473 | <profiles> |
501 | 474 | <profile> |
502 | 475 | <id>disable-javadoc-doclint</id> |
|
505 | 478 | </activation> |
506 | 479 | </profile> |
507 | 480 | <!-- 发布到 Maven Central Portal:mvn -Prelease deploy(GPG 签名 + 源码 + Javadoc + Central 发布插件) --> |
508 | | - |
509 | 481 | <profile> |
510 | 482 | <id>release</id> |
511 | 483 | <build> |
512 | 484 | <plugins> |
513 | | - |
514 | 485 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
515 | 486 | <plugin> |
516 | 487 | <!-- 环境检查插件:代码编译前的环境监察 --> |
517 | 488 | <groupId>org.apache.maven.plugins</groupId> |
518 | 489 | <artifactId>maven-enforcer-plugin</artifactId> |
519 | 490 | </plugin> |
520 | | - |
521 | 491 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
522 | 492 | <plugin> |
523 | 493 | <!-- 编译插件:编译主代码至主输出目录 --> |
524 | 494 | <groupId>org.apache.maven.plugins</groupId> |
525 | 495 | <artifactId>maven-compiler-plugin</artifactId> |
526 | 496 | </plugin> |
527 | | - |
528 | 497 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
529 | 498 | <plugin> |
530 | 499 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
531 | 500 | <groupId>org.apache.maven.plugins</groupId> |
532 | 501 | <artifactId>maven-resources-plugin</artifactId> |
533 | 502 | </plugin> |
534 | | - |
535 | 503 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
536 | 504 | <plugin> |
537 | 505 | <!-- 单元测试插件:执行测试用例 --> |
538 | 506 | <groupId>org.apache.maven.plugins</groupId> |
539 | 507 | <artifactId>maven-surefire-plugin</artifactId> |
540 | 508 | </plugin> |
541 | | - |
542 | 509 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
543 | 510 | <plugin> |
544 | 511 | <!-- jar 包生成插件:创建项目 jar 包 --> |
545 | 512 | <groupId>org.apache.maven.plugins</groupId> |
546 | 513 | <artifactId>maven-jar-plugin</artifactId> |
547 | 514 | </plugin> |
548 | | - |
549 | 515 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
550 | 516 | <plugin> |
551 | 517 | <!-- 源码插件:发布时自动将源码同时发布 --> |
552 | 518 | <groupId>org.apache.maven.plugins</groupId> |
553 | 519 | <artifactId>maven-source-plugin</artifactId> |
554 | 520 | </plugin> |
555 | | - |
556 | 521 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
557 | 522 | <plugin> |
558 | 523 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
559 | 524 | <groupId>org.apache.maven.plugins</groupId> |
560 | 525 | <artifactId>maven-javadoc-plugin</artifactId> |
561 | 526 | </plugin> |
562 | | - |
563 | 527 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
564 | 528 | <plugin> |
565 | 529 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
566 | 530 | <groupId>org.apache.maven.plugins</groupId> |
567 | 531 | <artifactId>maven-install-plugin</artifactId> |
568 | 532 | </plugin> |
569 | | - |
570 | 533 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
571 | 534 | <plugin> |
572 | 535 | <!-- 签名插件:对制品进行 PGP 签名 --> |
573 | 536 | <groupId>org.apache.maven.plugins</groupId> |
574 | 537 | <artifactId>maven-gpg-plugin</artifactId> |
575 | 538 | </plugin> |
576 | | - |
577 | 539 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
578 | 540 | <plugin> |
579 | 541 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
580 | 542 | <groupId>org.apache.maven.plugins</groupId> |
581 | 543 | <artifactId>maven-deploy-plugin</artifactId> |
582 | 544 | </plugin> |
583 | | - |
584 | 545 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
585 | 546 | <plugin> |
586 | 547 | <!-- 发布管理插件:版本发布与标签管理 --> |
587 | 548 | <groupId>org.apache.maven.plugins</groupId> |
588 | 549 | <artifactId>maven-release-plugin</artifactId> |
589 | 550 | </plugin> |
590 | | - |
591 | 551 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
592 | 552 | <plugin> |
593 | 553 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
598 | 558 | </build> |
599 | 559 | </profile> |
600 | 560 | </profiles> |
601 | | - |
602 | 561 | </project> |
0 commit comments