Skip to content

Commit

Permalink
[ci] Fixes JDK 17 maven deploy issue (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored Jan 21, 2024
1 parent dc8f99a commit 2a46dd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
env:
GPG_KEY: ${{ secrets.signingKey }}
- name: Publish to OSS Repository Apache Maven
run: mvn deploy -s settings.xml -Dgpg.passphrase=${GPG_PASSWORD}
run: |
export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
mvn deploy -s settings.xml -Dgpg.passphrase=${GPG_PASSWORD}
env:
OSS_USERNAME: ${{ secrets.ossrhUsername }}
OSS_PASSWORD: ${{ secrets.ossrhPassword }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
env:
GPG_KEY: ${{ secrets.signingKey }}
- name: Release to OSS staging
run: mvn deploy -s settings.xml -Dgpg.passphrase=${GPG_PASSWORD}
run: |
export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
mvn deploy -s settings.xml -Dgpg.passphrase=${GPG_PASSWORD}
env:
OSS_USERNAME: ${{ secrets.ossrhUsername }}
OSS_PASSWORD: ${{ secrets.ossrhPassword }}
Expand Down

0 comments on commit 2a46dd0

Please sign in to comment.