Skip to content

Commit e16fbb8

Browse files
author
zhanq
committed
feat: update version to 5.2.8 and adjust Maven Central deployment configuration
1 parent ee9ceed commit e16fbb8

File tree

6 files changed

+27
-158
lines changed

6 files changed

+27
-158
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release to Maven Central
33
on:
44
push:
55
tags:
6-
- 'v*' # 当推送以 v 开头的标签时触发,如 v5.2.5
6+
- 'v*' # 当推送以 v 开头的标签时触发,如 v5.2.8
77

88
permissions:
99
contents: read
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
java-version: '8'
2323
distribution: 'temurin'
24-
server-id: ossrh
24+
server-id: central
2525
server-username: MAVEN_USERNAME
2626
server-password: MAVEN_PASSWORD
2727

@@ -49,12 +49,18 @@ jobs:
4949
- name: 编译
5050
run: mvn clean compile -pl jiguang-sdk
5151

52+
- name: 调试认证信息
53+
run: |
54+
echo "正在验证 Maven Central Portal 认证配置..."
55+
echo "用户名: ${{ secrets.CENTRAL_USERNAME }}" | sed 's/./*/g'
56+
echo "Token: ${{ secrets.CENTRAL_TOKEN }}" | cut -c1-4 | sed 's/.$/***/'
57+
5258
- name: 发布到 Maven Central
5359
run: |
5460
mvn clean deploy -P release -pl jiguang-sdk -DskipTests
5561
env:
56-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
57-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
62+
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
63+
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN }}
5864
GPG_TTY: $(tty)
5965

6066
- name: 发布结果通知

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
## 1. 集成
1616
引入sdk包
1717
```xml
18-
<!--以5.2.6版本为例-->
18+
<!--以5.2.8版本为例-->
1919
<dependencies>
2020
<!-- jiguang-sdk -->
2121
<dependency>
2222
<groupId>io.github.jpush</groupId>
2323
<artifactId>jiguang-sdk</artifactId>
24-
<version>5.2.6</version>
24+
<version>5.2.8</version>
2525
</dependency>
2626
</dependencies>
2727
```

RELEASE.md

Lines changed: 0 additions & 134 deletions
This file was deleted.

example-for-spring/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<groupId>io.github.jpush</groupId>
1515
<artifactId>example-for-spring</artifactId>
16-
<version>5.2.6</version>
16+
<version>5.2.8</version>
1717

1818
<properties>
1919
<maven.compiler.source>8</maven.compiler.source>
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>io.github.jpush</groupId>
2828
<artifactId>jiguang-sdk</artifactId>
29-
<version>5.2.6</version>
29+
<version>5.2.8</version>
3030
</dependency>
3131
<!-- lombok -->
3232
<dependency>

jiguang-sdk/pom.xml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
<parent>
88
<groupId>io.github.jpush</groupId>
99
<artifactId>jiguang-sdk-java</artifactId>
10-
<version>5.2.6</version>
10+
<version>5.2.8</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

14+
<groupId>io.github.jpush</groupId>
1415
<artifactId>jiguang-sdk</artifactId>
15-
<version>5.2.6</version>
16+
<version>5.2.8</version>
1617
<packaging>jar</packaging>
1718

1819
<properties>
@@ -55,13 +56,9 @@
5556
</scm>
5657

5758
<distributionManagement>
58-
<snapshotRepository>
59-
<id>ossrh</id>
60-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
61-
</snapshotRepository>
6259
<repository>
63-
<id>ossrh</id>
64-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
60+
<id>central</id>
61+
<url>https://central.sonatype.com/api/v1/publisher/deployments</url>
6562
</repository>
6663
</distributionManagement>
6764

@@ -204,16 +201,16 @@
204201
</executions>
205202
</plugin>
206203

207-
<!-- Nexus 部署插件 -->
204+
<!-- Maven Central Portal 发布插件 -->
208205
<plugin>
209-
<groupId>org.sonatype.plugins</groupId>
210-
<artifactId>nexus-staging-maven-plugin</artifactId>
211-
<version>1.6.13</version>
206+
<groupId>org.sonatype.central</groupId>
207+
<artifactId>central-publishing-maven-plugin</artifactId>
208+
<version>0.5.0</version>
212209
<extensions>true</extensions>
213210
<configuration>
214-
<serverId>ossrh</serverId>
215-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
216-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
211+
<publishingServerId>central</publishingServerId>
212+
<autoPublish>true</autoPublish>
213+
<waitUntil>published</waitUntil>
217214
</configuration>
218215
</plugin>
219216
</plugins>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.jpush</groupId>
88
<artifactId>jiguang-sdk-java</artifactId>
9-
<version>5.2.6</version>
9+
<version>5.2.8</version>
1010
<packaging>pom</packaging>
1111

1212
<name>Jiguang SDK For Rest Api</name>

0 commit comments

Comments
 (0)