Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f769dd

Browse files
authored
ci: use maven central plugin (#37)
migrate to the new plugin / release workflowSigned-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
1 parentd31c1e2 commit9f769dd

File tree

2 files changed

+13
-25
lines changed

2 files changed

+13
-25
lines changed

‎.github/workflows/release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
java-version:21
3333
distribution:'temurin'
34-
server-id:ossrh
34+
server-id:central
3535
server-username:MAVEN_USERNAME
3636
server-password:MAVEN_PASSWORD
3737
gpg-private-key:${{ secrets.JRELEASER_GPG_SECRET_KEY }}

‎pom.xml‎

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@
4646
<url>https://github.com/extism/java-sdk/issues</url>
4747
</issueManagement>
4848

49-
<distributionManagement>
50-
<repository>
51-
<id>ossrh</id>
52-
<name>Central Repository OSSRH</name>
53-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
54-
</repository>
55-
</distributionManagement>
56-
5749
<properties>
5850
<java.version>11</java.version>
5951
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -75,12 +67,6 @@
7567
<profiles>
7668
<profile>
7769
<id>release</id>
78-
<distributionManagement>
79-
<snapshotRepository>
80-
<id>ossrh</id>
81-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
82-
</snapshotRepository>
83-
</distributionManagement>
8470

8571
<build>
8672
<plugins>
@@ -128,13 +114,14 @@
128114
</executions>
129115
</plugin>
130116
<plugin>
131-
<groupId>org.sonatype.plugins</groupId>
132-
<artifactId>nexus-staging-maven-plugin</artifactId>
117+
<groupId>org.sonatype.central</groupId>
118+
<artifactId>central-publishing-maven-plugin</artifactId>
119+
<version>0.7.0</version>
133120
<extensions>true</extensions>
134121
<configuration>
135-
<serverId>ossrh</serverId>
136-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
137-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
122+
<publishingServerId>central</publishingServerId>
123+
<autoPublish>true</autoPublish>
124+
<waitUntil>published</waitUntil>
138125
</configuration>
139126
</plugin>
140127
</plugins>
@@ -145,13 +132,14 @@
145132
<build>
146133
<plugins>
147134
<plugin>
148-
<groupId>org.sonatype.plugins</groupId>
149-
<artifactId>nexus-staging-maven-plugin</artifactId>
150-
<version>1.7.0</version>
135+
<groupId>org.sonatype.central</groupId>
136+
<artifactId>central-publishing-maven-plugin</artifactId>
137+
<version>0.7.0</version>
151138
<extensions>true</extensions>
152139
<configuration>
153-
<serverId>ossrh</serverId>
154-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
140+
<publishingServerId>central</publishingServerId>
141+
<autoPublish>true</autoPublish>
142+
<waitUntil>published</waitUntil>
155143
</configuration>
156144
</plugin>
157145
<plugin>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp