Skip to content

Commit ddfd2ab

Browse files
authored
Merge pull request #178 from wimdeblauwe/feature/release-flow
build: Replace nexus-staging-maven-plugin with central-publishing-maven-plugin
2 parents 26826e9 + 0ff3857 commit ddfd2ab

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
distribution: 'temurin'
2626
java-version: 17
2727
cache: 'maven'
28-
server-id: ossrh
28+
server-id: central
2929
server-username: OSSRH_USERNAME
3030
server-password: OSSRH_PASSWORD
3131
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

pom.xml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<java.version>17</java.version>
2222

2323
<maven-gpg-plugin.version>3.2.3</maven-gpg-plugin.version>
24-
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
24+
<central-publishing-maven-plugin.version>0.9.0</central-publishing-maven-plugin.version>
2525
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
2626
</properties>
2727

@@ -120,12 +120,6 @@
120120
<profiles>
121121
<profile>
122122
<id>release</id>
123-
<distributionManagement>
124-
<snapshotRepository>
125-
<id>ossrh</id>
126-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
127-
</snapshotRepository>
128-
</distributionManagement>
129123
<build>
130124
<plugins>
131125
<plugin>
@@ -196,16 +190,17 @@
196190
</executions>
197191
</plugin>
198192
<plugin>
199-
<groupId>org.sonatype.plugins</groupId>
200-
<artifactId>nexus-staging-maven-plugin</artifactId>
201-
<version>${nexus-staging-maven-plugin.version}</version>
193+
<groupId>org.sonatype.central</groupId>
194+
<artifactId>central-publishing-maven-plugin</artifactId>
195+
<version>${central-publishing-maven-plugin.version}</version>
202196
<extensions>true</extensions>
203197
<configuration>
204-
<serverId>ossrh</serverId>
205-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
206-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
198+
<deploymentName>htmx-spring-boot - ${project.version}</deploymentName>
199+
<publishingServerId>central</publishingServerId>
200+
<autoPublish>true</autoPublish>
207201
</configuration>
208202
</plugin>
203+
209204
</plugins>
210205
</build>
211206
</profile>

0 commit comments

Comments
 (0)