Skip to content

Commit 74d3ebd

Browse files
author
Jacek Gębal
committed
Fixing references to Maven OSS repository
1 parent 8e7c759 commit 74d3ebd

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
java-version: '11'
5151
distribution: 'adopt'
52-
server-id: ossrh
52+
server-id: central
5353
server-username: MAVEN_USERNAME
5454
server-password: MAVEN_PASSWORD
5555
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

pom.xml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,19 +200,29 @@
200200
</execution>
201201
</executions>
202202
</plugin>
203+
<plugin>
204+
<groupId>org.sonatype.central</groupId>
205+
<artifactId>central-publishing-maven-plugin</artifactId>
206+
<version>0.7.0</version>
207+
<extensions>true</extensions>
208+
<configuration>
209+
<publishingServerId>central</publishingServerId>
210+
<autoPublish>true</autoPublish>
211+
</configuration>
212+
</plugin>
203213
</plugins>
204214
</build>
205215
</profile>
206216
</profiles>
207217

208218
<distributionManagement>
209219
<snapshotRepository>
210-
<id>ossrh</id>
211-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
220+
<id>central</id>
221+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
212222
</snapshotRepository>
213223
<repository>
214-
<id>ossrh</id>
215-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
224+
<id>central</id>
225+
<url>https://central.sonatype.com</url>
216226
</repository>
217227
</distributionManagement>
218228
</project>

0 commit comments

Comments
 (0)