Skip to content

Commit

Permalink
feat: fix pom.xml to fix CI for publishing to https://central.sonatyp…
Browse files Browse the repository at this point in the history
  • Loading branch information
liewstar authored Oct 3, 2024
1 parent 1f0240a commit 4c8d3ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 18
node-version: 20

- name: Semantic Release
run: |
Expand All @@ -51,5 +51,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}
OSSRH_JIRA_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
OSSRH_JIRA_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }}
OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }}
18 changes: 7 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,8 @@
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://central.sonatype.com</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<dependencies>
Expand Down Expand Up @@ -232,15 +228,15 @@

<plugin>
<!-- Automatically close and deploy from OSSRH -->
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<publishingServerId>ossrh</publishingServerId>
<tokenAuth>true</tokenAuth>
<!-- Release versions will be synced to Maven Central automatically. -->
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 4c8d3ba

Please sign in to comment.