Skip to content

Commit

Permalink
Add JAVA_TOOL_OPTIONS env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ShammiL committed Aug 8, 2024
1 parent fc5a1cf commit 2d6efba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ jobs:
with:
distribution: 'adopt'
java-version: 11
- name: Set JAVA_TOOL_OPTIONS
run: echo "JAVA_TOOL_OPTIONS='${JAVA_TOOL_OPTIONS:-} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED'" >> $GITHUB_ENV
- name: Build with Maven
run: mvn -B clean install --file pom.xml -fae
env:
JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}

MacOS:

Expand All @@ -28,8 +32,13 @@ jobs:
with:
distribution: 'adopt'
java-version: 11
- name: Set JAVA_TOOL_OPTIONS
run: echo "JAVA_TOOL_OPTIONS='${JAVA_TOOL_OPTIONS:-} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED'" >> $GITHUB_ENV
- name: Build with Maven
run: mvn -B clean install --file pom.xml -fae
env:
JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}


windows:

Expand All @@ -44,5 +53,9 @@ jobs:
with:
distribution: 'adopt'
java-version: 11
- name: Set JAVA_TOOL_OPTIONS
run: echo "JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS% -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED" >> $GITHUB_ENV
- name: Build with Maven
run: mvn -B clean install --file pom.xml -fae
env:
JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}

0 comments on commit 2d6efba

Please sign in to comment.