diff --git a/.github/workflows/maven-central-release.yml b/.github/workflows/maven-central-release.yml
new file mode 100644
index 000000000..1fb3702c8
--- /dev/null
+++ b/.github/workflows/maven-central-release.yml
@@ -0,0 +1,29 @@
+name: Maven Central Relase
+on: workflow_dispatch
+
+env:
+ MAVEN_CLI: -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
+
+jobs:
+ github-release:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: 11
+ distribution: adopt
+ server-id: ossrh
+ server-username: OSSRH_TOKEN_USERNAME
+ server-password: OSSRH_TOKEN_PASSWORD
+ gpg-private-key: ${{ secrets.JAVA_NATIVE_PGP_KEY }}
+ gpg-passphrase: PGP_KEY_PASSPHRASE
+ - name: Prep Maven Repo
+ run: mvn ${MAVEN_CLI} dependency:resolve-plugins dependency:resolve
+ - name: Publish artifacts to Maven Central
+ run: mvn ${MAVEN_CLI} clean deploy -P package,maven-central-release
+ env:
+ OSSRH_TOKEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }}
+ OSSRH_TOKEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
+ PGP_KEY_PASSPHRASE: ${{ secrets.JAVA_NATIVE_PGP_KEY_PASSPHRASE }}
diff --git a/pom.xml b/pom.xml
index 3bb6b6f0a..354475024 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,9 +62,11 @@
3.1.1
3.8.0
3.0.0-M3
+ 3.0.1
3.1.1
3.1.1
3.6.0
+ 1.6.7
1.7.0
1.1
3.0.1
@@ -416,7 +418,7 @@
attach-sources
- jar
+ jar-no-fork
@@ -543,5 +545,46 @@
+
+ maven-central-release
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ ${plugin.gpg.version}
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+ java-native
+ gpg.passphrase
+
+ --pinentry-mode
+ loopback
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ ${plugin.nexus-staging.version}
+ true
+
+ ossrh
+ https://oss.sonatype.org/
+ false
+
+
+
+
+
+