Fix dependencies

This commit is contained in:
Andrea Cavalli 2022-11-14 12:28:06 +01:00
parent 0c3eb82d1b
commit 7301683d24
2 changed files with 7 additions and 3 deletions

View File

@ -29,17 +29,21 @@ jobs:
submodules: "recursive"
- name: Setup Java (Snapshot)
if: github.ref != 'refs/heads/master'
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven
server-id: mchv-snapshot-distribution
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Setup Java (Release)
if: github.ref == 'refs/heads/master'
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven
server-id: mchv-release-distribution
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

View File

@ -1,7 +1,7 @@
#!/bin/bash -e
set -e
export MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/javax.crypto=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"
export MAVEN_OPTS=""
echo "MATRIX_OS: $GH_MATRIX_OS"
echo "MATRIX_ARCH: $GH_MATRIX_ARCH"