Skip to content

Commit 561d5da

Browse files
committed
Adjust release to use Maven Central Publishing Portal
1 parent 14f9f6e commit 561d5da

2 files changed

Lines changed: 16 additions & 17 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
6363
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
6464
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
65+
JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
66+
JRELEASER_MAVENCENTRAL_SONATYPE_TOKEN: ${{ secrets.SONATYPE_CENTRAL_TOKEN }}
6567
JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
6668
JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
6769
run: |

parent/pom.xml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -880,24 +880,21 @@
880880
</checksum>
881881
<deploy>
882882
<maven>
883-
<nexus2>
884-
<maven-central>
885-
<active>ALWAYS</active>
886-
<url>https://oss.sonatype.org/service/local</url>
887-
<snapshotUrl>https://oss.sonatype.org/content/repositories/snapshots/</snapshotUrl>
888-
<closeRepository>true</closeRepository>
889-
<releaseRepository>true</releaseRepository>
883+
<mavenCentral>
884+
<sonatype>
885+
<active>RELEASE</active>
886+
<url>https://central.sonatype.com/api/v1/publisher</url>
890887
<stagingRepositories>${maven.multiModuleProjectDirectory}/target/staging-deploy</stagingRepositories>
891-
<artifactOverrides>
892-
<artifactOverride>
893-
<groupId>org.mapstruct</groupId>
894-
<artifactId>mapstruct-jdk8</artifactId>
895-
<sourceJar>false</sourceJar>
896-
<javadocJar>false</javadocJar>
897-
</artifactOverride>
898-
</artifactOverrides>
899-
</maven-central>
900-
</nexus2>
888+
</sonatype>
889+
<artifactOverrides>
890+
<artifactOverride>
891+
<groupId>org.mapstruct</groupId>
892+
<artifactId>mapstruct-jdk8</artifactId>
893+
<sourceJar>false</sourceJar>
894+
<javadocJar>false</javadocJar>
895+
</artifactOverride>
896+
</artifactOverrides>
897+
</mavenCentral>
901898
</maven>
902899
</deploy>
903900
<release>

0 commit comments

Comments
 (0)