diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2e4ec8ce5..6e1d932ea 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -6,6 +6,9 @@ on:
paths:
- '.github/project.yml'
+permissions:
+ contents: write
+
jobs:
release:
runs-on: ubuntu-latest
@@ -35,7 +38,7 @@ jobs:
distribution: temurin
java-version: 17
cache: 'maven'
- server-id: ossrh
+ server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
@@ -51,7 +54,7 @@ jobs:
cat release.properties
git checkout ${{github.base_ref}}
git rebase release
- mvn -B release:perform -Prelease -Darguments="-DperformRelease"
+ mvn -B release:perform -Prelease
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
diff --git a/pom.xml b/pom.xml
index 4fe5a1039..8b56d881b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -64,6 +64,7 @@
${java.version}
1.3.1
3.12.0
+ 0.11.0
3.3.1
3.4.0
3.6.0
@@ -207,6 +208,17 @@
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ ${version.org.sonatype.central}
+ true
+
+ central
+ true
+ uploaded
+
+
org.codehaus.mojo
@@ -405,17 +417,6 @@
-
-
- ossrh-snapshots
- https://oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
central