Skip to content

Commit

Permalink
Add distributionManagement to pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernLoetters committed Feb 1, 2025
1 parent 7af3b30 commit a5f2942
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}

- name: Publish package
run: mvn -P release --batch-mode deploy -DskipTests
run: mvn --batch-mode deploy -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
Expand Down
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@
</license>
</licenses>

<distributionManagement>
<repository>
<id>central</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<developers>
<developer>
<id>BjoernLoetters</id>
<name>Björn Lötters</name>
<email>mail@bjoernloetters.com</email>
</developer>
Expand Down

0 comments on commit a5f2942

Please sign in to comment.