Skip to content

Commit

Permalink
Update to latest Maven plugins, tweak the build process to avoid errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kickroot committed Mar 29, 2024
1 parent 6632193 commit 4abd990
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
gpg --list-secret-keys --keyid-format LONG
env:
OSSRH_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
- name: Local Repo Install
run: mvn -B clean install -P -uberjar -DskipTests # No uber jars just yet.
env:
OSSRH_GPG_KEYNAME: ${{ secrets.OSSRH_GPG_KEYNAME }}
OSSRH_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
- name: Verify and Sign Jars
run: mvn -B clean verify -P -uberjar # No uber jars just yet.
env:
Expand All @@ -45,7 +50,7 @@ jobs:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
- name: Assembly
run: mvn clean package install -DskipTests && mvn -B --projects magpie-cli assembly:single -DskipTests
run: mvn clean package -DskipTests && mvn -B --projects magpie-cli assembly:single -DskipTests
- name: Upload zip
uses: actions/upload-artifact@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -130,7 +130,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>3.6.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -143,7 +143,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
Expand All @@ -154,7 +154,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M1</version>
<version>3.0.1</version>
<configuration>
<releaseProfiles>ossrh,!uberjar</releaseProfiles>
</configuration>
Expand Down

0 comments on commit 4abd990

Please sign in to comment.