Skip to content

Commit 7b99119

Browse files
committed
sdk支持jdk17
1 parent 9e19558 commit 7b99119

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

.github/workflows/deployJarToOSS.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ jobs:
1616
uses: actions/checkout@v2
1717

1818
- name: Install Java and Maven
19-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v4
2020
with:
21-
java-version: 17
21+
java-version: '17'
22+
distribution: 'temurin'
23+
maven-version: '3.8.8'
24+
cache: 'maven'
2225

2326
- name: Release Maven package
2427
uses: samuelmeuli/action-maven-publish@v1
@@ -27,3 +30,5 @@ jobs:
2730
gpg_passphrase: ${{ secrets.SIGNING_PASSWORD }}
2831
nexus_username: ${{ secrets.SONATYPE_USERNAME }}
2932
nexus_password: ${{ secrets.SONATYPE_PASSWORD }}
33+
server_id: ossrh
34+
nexus_url: https://ossrh-staging-api.central.sonatype.com/

pom.xml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -223,26 +223,17 @@
223223
<plugin>
224224
<groupId>org.sonatype.plugins</groupId>
225225
<artifactId>nexus-staging-maven-plugin</artifactId>
226-
<version>1.6.13</version>
226+
<version>1.7.0</version>
227227
<extensions>true</extensions>
228228
<configuration>
229229
<serverId>ossrh</serverId>
230-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
230+
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
231231
<autoReleaseAfterClose>false</autoReleaseAfterClose>
232232
</configuration>
233233
</plugin>
234234
</plugins>
235235
</build>
236236

237-
238-
<distributionManagement>
239-
<repository>
240-
<id>github</id>
241-
<name>Github ci-plugins java-sdk-plugin Maven Packages</name>
242-
<url>https://maven.pkg.github.com/ci-plugins/java-plugin-sdk</url>
243-
</repository>
244-
</distributionManagement>
245-
246237
<profiles>
247238
<profile>
248239
<id>deploy</id>
@@ -293,7 +284,7 @@
293284
<plugin>
294285
<groupId>org.apache.maven.plugins</groupId>
295286
<artifactId>maven-gpg-plugin</artifactId>
296-
<version>1.5</version>
287+
<version>3.1.0</version>
297288
<executions>
298289
<execution>
299290
<phase>verify</phase>
@@ -320,11 +311,12 @@
320311
<snapshotRepository>
321312
<id>ossrh</id>
322313
<name>Sonatype Nexus Snapshots</name>
323-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
314+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/repositories/snapshots/content/</url>
324315
</snapshotRepository>
325316
<repository>
326317
<id>ossrh</id>
327318
<name>Nexus Release Repository</name>
319+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
328320
</repository>
329321
</distributionManagement>
330322
</profile>

0 commit comments

Comments
 (0)