diff --git a/.github/workflows/publish_maven.yml b/.github/workflows/publish_maven.yml index 02102815..0270715b 100644 --- a/.github/workflows/publish_maven.yml +++ b/.github/workflows/publish_maven.yml @@ -21,19 +21,12 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Substituted with the value stored in the referenced secret gpg-passphrase: SIGN_KEY_PASS # Env var that holds the key's passphrase cache: 'maven' - - - name: Build with Maven - run: mvn clean install - - - name: Generate Javadoc - run: mvn javadoc:javadoc - - - name: Publish Package + - name: Build & Deploy run: | # -U force updates just to make sure we are using latest dependencies # -B Batch mode (do not ask for user input), just in case # -P activate profile - mvn deploy -s settings.xml + mvn -X -e -Prelease -DskipTests --batch-mode deploy env: SIGN_KEY_PASS: ${{ secrets.GPG_PASSPHRASE }} MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} diff --git a/pom.xml b/pom.xml index 492fdd8b..4790c4fd 100644 --- a/pom.xml +++ b/pom.xml @@ -89,11 +89,12 @@ attach-sources - jar + jar-no-fork + org.apache.maven.plugins maven-javadoc-plugin @@ -107,27 +108,7 @@ - - org.apache.maven.plugins - maven-gpg-plugin - 1.5 - - - sign-artifacts - verify - - sign - - - - --batch - --pinentry-mode - loopback - - - - - + org.apache.maven.plugins maven-compiler-plugin @@ -207,32 +188,6 @@ - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.7.0 - - - attach-javadocs - - jar - - - - maven-release-plugin ${version.maven-release-plugin} @@ -259,6 +214,7 @@ + org.sonatype.central central-publishing-maven-plugin