Skip to content

Commit 1af0f61

Browse files
Need to use JDK 11 to build for JDK 8
1 parent 5bebe6c commit 1af0f61

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/java-build.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ jobs:
5555
- name: Checkout
5656
uses: actions/checkout@v3
5757

58+
# Need to use JDK 11 to build for JDK 8
59+
- name: Set JDK
60+
id: set-jdk
61+
shell: bash
62+
run: |
63+
if [[ ${{ matrix.java-versions }} == 8 ]]; then
64+
echo "JDK_VERSION=11" >> $GITHUB_OUTPUT
65+
else
66+
version=${{ matrix.java-versions }}
67+
echo "JDK_VERSION=$version" >> $GITHUB_OUTPUT
68+
fi
69+
5870
# Sets up the specified JDK version from the matrix
5971
- name: Set up JDK ${{ matrix.java-versions }}
6072
uses: actions/setup-java@v3

0 commit comments

Comments
 (0)