Skip to content

Commit e7255e9

Browse files
committed
Fix maven central publishing config
1 parent 53ec007 commit e7255e9

File tree

2 files changed

+40
-39
lines changed

2 files changed

+40
-39
lines changed

.github/workflows/new-maven-central-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
2828
- name: Release to Sonatype OSSRH
2929
env:
30-
SONATYPE_USER: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
31-
SONATYPE_PASSWORD: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
30+
SONATYPE_USER: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
31+
SONATYPE_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
3232
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3333
run: |
3434
./mvnw -B clean install -DskipTests

pom.xml

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -864,43 +864,44 @@
864864
</distributionManagement>
865865
</profile>
866866
<profile>
867-
<id>sonatype</id>
868-
<properties>
869-
<maven.test.skip>true</maven.test.skip>
870-
</properties>
871-
<build>
872-
<plugins>
873-
<plugin>
874-
<groupId>org.apache.maven.plugins</groupId>
875-
<artifactId>maven-gpg-plugin</artifactId>
876-
<executions>
877-
<execution>
878-
<id>sign-artifacts</id>
879-
<phase>verify</phase>
880-
<goals>
881-
<goal>sign</goal>
882-
</goals>
883-
</execution>
884-
</executions>
885-
<configuration>
886-
<!-- Passphrase consumed from MAVEN_GPG_PASSPHRASE environment variable. -->
887-
</configuration>
888-
</plugin>
889-
<plugin>
890-
<groupId>org.sonatype.plugins</groupId>
891-
<artifactId>nexus-staging-maven-plugin</artifactId>
892-
<version>1.7.0</version>
893-
<extensions>true</extensions>
894-
<configuration>
895-
<serverId>sonatype-new</serverId>
896-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
897-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
898-
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
899-
</configuration>
900-
</plugin>
901-
</plugins>
902-
</build>
903-
</profile>
867+
<id>sonatype</id>
868+
<properties>
869+
<maven.test.skip>true</maven.test.skip>
870+
</properties>
871+
<build>
872+
<plugins>
873+
<plugin>
874+
<groupId>org.sonatype.central</groupId>
875+
<artifactId>central-publishing-maven-plugin</artifactId>
876+
<version>0.8.0</version>
877+
<extensions>true</extensions>
878+
<configuration>
879+
<publishingServerId>central</publishingServerId>
880+
<autoPublish>true</autoPublish>
881+
</configuration>
882+
</plugin>
883+
<plugin>
884+
<groupId>org.apache.maven.plugins</groupId>
885+
<artifactId>maven-gpg-plugin</artifactId>
886+
<version>3.2.5</version>
887+
<executions>
888+
<execution>
889+
<id>sign-artifacts</id>
890+
<phase>verify</phase>
891+
<goals>
892+
<goal>sign</goal>
893+
</goals>
894+
</execution>
895+
</executions>
896+
<configuration>
897+
<!-- Passphrase consumed from MAVEN_GPG_PASSPHRASE environment variable. -->
898+
</configuration>
899+
</plugin>
900+
</plugins>
901+
</build>
902+
</profile>
903+
904+
904905
</profiles>
905906

906907
<dependencyManagement>

0 commit comments

Comments
 (0)