Skip to content

Commit 6750a94

Browse files
committed
build(ci): use central-publishing-maven-plugin
- Start use central-publishing-maven-plugin for snapshot release
1 parent d81488e commit 6750a94

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
distribution: 'zulu'
2121
java-version: '8'
22-
server-id: ossrh
22+
server-id: central-portal-snapshots
2323
server-username: ${{ secrets.MAVEN_CENTRAL_USER }}
2424
server-password: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
2525

pom.xml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@
203203
<tagNameFormat>v@{project.version}</tagNameFormat>
204204
</configuration>
205205
</plugin>
206+
<plugin>
207+
<groupId>org.sonatype.central</groupId>
208+
<artifactId>central-publishing-maven-plugin</artifactId>
209+
<version>0.9.0</version>
210+
<extensions>true</extensions>
211+
<configuration>
212+
<publishingServerId>central</publishingServerId>
213+
<deploymentName>io.tarantool.testcontainers-java-tarantool</deploymentName>
214+
</configuration>
215+
</plugin>
206216
<plugin>
207217
<groupId>org.jacoco</groupId>
208218
<artifactId>jacoco-maven-plugin</artifactId>
@@ -366,13 +376,23 @@
366376
</profiles>
367377

368378
<distributionManagement>
369-
<snapshotRepository>
370-
<id>ossrh</id>
371-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
372-
</snapshotRepository>
373379
<repository>
374380
<id>ossrh</id>
375381
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
376382
</repository>
377383
</distributionManagement>
384+
385+
<repositories>
386+
<repository>
387+
<name>Central Portal Snapshots</name>
388+
<id>central-portal-snapshots</id>
389+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
390+
<releases>
391+
<enabled>false</enabled>
392+
</releases>
393+
<snapshots>
394+
<enabled>true</enabled>
395+
</snapshots>
396+
</repository>
397+
</repositories>
378398
</project>

0 commit comments

Comments
 (0)