|
5 | 5 | <artifactId>hermes-java-sdk</artifactId> |
6 | 6 | <name>${project.groupId}:${project.artifactId}</name> |
7 | 7 | <url>https://github.com/easy-4-java/${project.artifactId}</url> |
8 | | - <description>Hermes Agent Java SDK (HTTP API Server + SSE + local CLI) — JDK 17 line</description> |
| 8 | + <description>Hermes Agent Java SDK (HTTP API Server + SSE + local CLI) — JDK 8 line</description> |
9 | 9 | <version>2.0.x.20260730-SNAPSHOT</version> |
10 | 10 | <packaging>jar</packaging> |
11 | 11 |
|
|
62 | 62 | <artifactId>maven-compiler-plugin</artifactId> |
63 | 63 | <version>${maven-compiler-plugin.version}</version> |
64 | 64 | <configuration> |
65 | | - <release>${java.version}</release> |
| 65 | + <!-- 源代码编译版本 --> |
| 66 | + <source>${java.version}</source> |
| 67 | + <!-- 目标平台编译版本 --> |
| 68 | + <target>${java.version}</target> |
66 | 69 | <!-- 字符集编码 --> |
67 | 70 | <encoding>${project.build.sourceEncoding}</encoding> |
68 | 71 | <!-- 编译最大内存 --> |
|
248 | 251 | </executions> |
249 | 252 | </plugin> |
250 | 253 |
|
251 | | - <!-- https://mvnrepository.com/artifact/org.sonatype.plugins/nexus-staging-maven-plugin --> |
| 254 | + <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
252 | 255 | <plugin> |
253 | | - <groupId>org.sonatype.plugins</groupId> |
254 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
255 | | - <version>${maven-nexus-staging-plugin.version}</version> |
| 256 | + <groupId>org.sonatype.central</groupId> |
| 257 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 258 | + <version>${maven-central-publishing-plugin.version}</version> |
256 | 259 | <extensions>true</extensions> |
257 | 260 | <configuration> |
258 | | - <serverId>ossrh</serverId> |
259 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
260 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
261 | | - <stagingProgressPauseDurationSeconds>60</stagingProgressPauseDurationSeconds> |
262 | | - <stagingProgressTimeoutMinutes>20</stagingProgressTimeoutMinutes> |
263 | | - <detectBuildFailures>true</detectBuildFailures> |
| 261 | + <publishingServerId>central</publishingServerId> |
| 262 | + <autoPublish>true</autoPublish> |
| 263 | + <waitUntil>published</waitUntil> |
264 | 264 | </configuration> |
265 | 265 | </plugin> |
266 | 266 | </plugins> |
|
319 | 319 | <artifactId>maven-compiler-plugin</artifactId> |
320 | 320 | <version>${maven-compiler-plugin.version}</version> |
321 | 321 | <configuration> |
322 | | - <!-- 源代码编译版本 --> |
323 | 322 | <source>${java.version}</source> |
324 | | - <!-- 目标平台编译版本 --> |
325 | 323 | <target>${java.version}</target> |
326 | 324 | <!-- 保留方法参数名,支持 Spring MVC 按参数名绑定 --> |
327 | 325 | <parameters>true</parameters> |
|
353 | 351 | <junit.version>4.13.2</junit.version> |
354 | 352 | <slf4j.version>2.0.18</slf4j.version> |
355 | 353 | <lombok.version>1.18.46</lombok.version> |
356 | | - <jackson.version>2.18.9</jackson.version> |
357 | | - <junit-jupiter.version>6.1.0</junit-jupiter.version> |
| 354 | + <junit-jupiter.version>5.11.4</junit-jupiter.version> |
358 | 355 | <commons-lang.version>2.6</commons-lang.version> |
359 | 356 | </properties> |
360 | 357 | </profile> |
|
442 | 439 | <artifactId>maven-release-plugin</artifactId> |
443 | 440 | </plugin> |
444 | 441 |
|
445 | | - <!-- https://mvnrepository.com/artifact/org.sonatype.plugins/nexus-staging-maven-plugin --> |
| 442 | + <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
446 | 443 | <plugin> |
447 | | - <groupId>org.sonatype.plugins</groupId> |
448 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 444 | + <groupId>org.sonatype.central</groupId> |
| 445 | + <artifactId>central-publishing-maven-plugin</artifactId> |
449 | 446 | </plugin> |
450 | 447 | </plugins> |
451 | 448 | </build> |
|
504 | 501 | <junit.version>5.11.4</junit.version> |
505 | 502 | <lombok.version>1.18.46</lombok.version> |
506 | 503 | <okhttp3.version>4.12.0</okhttp3.version> |
507 | | - <okhttp3-extension.version>2.0.x.20260630-SNAPSHOT</okhttp3-extension.version> |
| 504 | + <okhttp3-extension.version>1.0.x.20260630-SNAPSHOT</okhttp3-extension.version> |
508 | 505 | <slf4j.version>2.0.18</slf4j.version> |
509 | 506 | <!-- Maven Plugin versions --> |
510 | 507 | <maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version> |
|
519 | 516 | <maven-jar-plugin.version>3.5.0</maven-jar-plugin.version> |
520 | 517 | <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> |
521 | 518 | <maven-nexus-staging-plugin.version>1.7.0</maven-nexus-staging-plugin.version> |
| 519 | + <!-- Deprecated: nexus-staging-maven-plugin 已被 central-publishing-maven-plugin 取代 --> |
522 | 520 | <maven-release-plugin.version>3.3.1</maven-release-plugin.version> |
523 | 521 | <maven-resources-plugin.version>3.5.0</maven-resources-plugin.version> |
524 | 522 | <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
525 | 523 | <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
526 | | - <junit-jupiter.version>6.1.0</junit-jupiter.version> |
| 524 | + <junit-jupiter.version>5.11.4</junit-jupiter.version> |
527 | 525 | </properties> |
528 | 526 |
|
529 | 527 | <!-- 依赖版本统一管理(dependencyManagement) --> |
|
552 | 550 | <version>${okhttp3.version}</version> |
553 | 551 | </dependency> |
554 | 552 | <!-- For Jackson --> |
555 | | - <dependency> |
556 | | - <groupId>com.fasterxml.jackson.core</groupId> |
557 | | - <artifactId>jackson-annotations</artifactId> |
558 | | - <version>${jackson.version}</version> |
559 | | - </dependency> |
560 | | - <dependency> |
561 | | - <groupId>com.fasterxml.jackson.core</groupId> |
562 | | - <artifactId>jackson-core</artifactId> |
563 | | - <version>${jackson.version}</version> |
564 | | - </dependency> |
565 | 553 | <dependency> |
566 | 554 | <groupId>com.fasterxml.jackson.core</groupId> |
567 | 555 | <artifactId>jackson-databind</artifactId> |
|
0 commit comments