Skip to content

Commit bd4094e

Browse files
committed
Maven: migrate to Central Publishing Portal, add release instructions
1 parent 718097f commit bd4094e

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

RELEASING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Releasing tmdb-java to Maven Central
2+
3+
## Local testing
4+
5+
```bash
6+
./mwnw clean install -P release,heyuwe-sign
7+
```
8+
9+
## Preparing a release and deploying it to Maven Central
10+
11+
```bash
12+
./mvnw release:prepare
13+
14+
./mvnw release:perform
15+
```

pom.xml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,6 @@
9494
</dependency>
9595
</dependencies>
9696

97-
<distributionManagement>
98-
<snapshotRepository>
99-
<id>ossrh</id>
100-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
101-
</snapshotRepository>
102-
</distributionManagement>
103-
10497
<build>
10598
<plugins>
10699
<plugin>
@@ -146,7 +139,7 @@
146139
<arguments>-Dmaven.test.skip=true</arguments>
147140
<localCheckout>true</localCheckout>
148141
<pushChanges>false</pushChanges>
149-
<releaseProfiles>release</releaseProfiles>
142+
<releaseProfiles>release,heyuwe-sign</releaseProfiles>
150143
<tagNameFormat>v@{project.version}</tagNameFormat>
151144
</configuration>
152145
</plugin>
@@ -162,14 +155,14 @@
162155
<version>2.18.0</version>
163156
</plugin>
164157
<plugin>
165-
<groupId>org.sonatype.plugins</groupId>
166-
<artifactId>nexus-staging-maven-plugin</artifactId>
167-
<version>1.7.0</version>
158+
<groupId>org.sonatype.central</groupId>
159+
<artifactId>central-publishing-maven-plugin</artifactId>
160+
<version>0.8.0</version>
168161
<extensions>true</extensions>
169162
<configuration>
170-
<serverId>ossrh</serverId>
171-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
172-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
163+
<publishingServerId>uwe-central</publishingServerId>
164+
<autoPublish>true</autoPublish>
165+
<waitUntil>published</waitUntil>
173166
</configuration>
174167
</plugin>
175168
</plugins>

0 commit comments

Comments
 (0)