diff --git a/.github/workflows/_publish-code.yml b/.github/workflows/_publish-code.yml
index 930639544..33a083534 100644
--- a/.github/workflows/_publish-code.yml
+++ b/.github/workflows/_publish-code.yml
@@ -19,23 +19,15 @@ jobs:
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- - name: Set up Maven Central Repository
+ - name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: "8"
distribution: "adopt"
- server-id: ossrh
- server-username: MAVEN_USERNAME
- server-password: MAVEN_PASSWORD
- id: publish-to-central
name: Publish to Central Repository
- env:
- MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: |
- mvn \
- --no-transfer-progress \
- --batch-mode \
+ mvn --update-snapshots \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \
- clean deploy -P release
+ clean deploy -P release verify
diff --git a/.gitignore b/.gitignore
index c03849485..389f8e478 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,3 +46,6 @@ hs_err_pid*
# Mindee Test files
local_test/
+
+# local config
+settings.xml
diff --git a/pom.xml b/pom.xml
index eb1db4283..3de17570d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,19 +30,8 @@
-
-
- ossrh
- https://s01.oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
-
+
@@ -70,10 +59,6 @@
maven-install-plugin
${org.apache.maven.install.version}
-
- maven-deploy-plugin
- ${org.apache.maven.deploy.version}
-
maven-site-plugin
@@ -136,17 +121,6 @@
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- ${org.sonatype.nexus.staging.maven.version}
- true
-
- ossrh
- https://s01.oss.sonatype.org/
- true
-
-
@@ -158,6 +132,16 @@
8
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.7.0
+ true
+
+ central
+ false
+
+
@@ -219,6 +203,9 @@
sign
+
+ opensource@mindee.co
+
@@ -405,7 +392,6 @@
4.5.14
3.1.0
3.12.1
- 3.1.1
3.3.0
1.5
2.5.2
@@ -426,7 +412,6 @@
0.2.0
1.18.32
2.0.17
- 1.6.12
UTF-8
2.27.2