|
94 | 94 | .gradle/wrapper
|
95 | 95 | # refresh cache every month to avoid unlimited growth
|
96 | 96 | key: gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
|
| 97 | + - name: Set up JDK 11 |
| 98 | + if: ${{ contains( inputs.branch, 'wip/2' ) }} |
| 99 | + |
| 100 | + with: |
| 101 | + distribution: 'temurin' |
| 102 | + java-version: 11 |
97 | 103 | - name: Set up JDK 17
|
| 104 | + if: ${{ !contains( inputs.branch, 'wip/2' ) }} |
98 | 105 |
|
99 | 106 | with:
|
100 | 107 | distribution: 'temurin'
|
@@ -136,8 +143,16 @@ jobs:
|
136 | 143 | .gradle/wrapper
|
137 | 144 | # refresh cache every month to avoid unlimited growth
|
138 | 145 | key: gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
|
| 146 | + - name: Set up JDK 11 |
| 147 | + if: ${{ contains( inputs.branch, 'wip/2' ) }} |
| 148 | + |
| 149 | + with: |
| 150 | + distribution: 'temurin' |
| 151 | + java-version: 11 |
139 | 152 | - name: Set up JDK 17
|
| 153 | + if: ${{ !contains( inputs.branch, 'wip/2' ) }} |
140 | 154 |
|
| 155 | + |
141 | 156 | with:
|
142 | 157 | distribution: 'temurin'
|
143 | 158 | java-version: 17
|
@@ -244,8 +259,15 @@ jobs:
|
244 | 259 | - name: Export path to JDK ${{ matrix.java.name }}
|
245 | 260 | id: testjdk-exportpath
|
246 | 261 | run: echo "::set-output name=path::${JAVA_HOME}"
|
247 |
| - # Always use JDK 11 to build the main code: that's what we use for releases. |
| 262 | + - name: Set up JDK 11 |
| 263 | + if: ${{ contains( inputs.branch, 'wip/2' ) }} |
| 264 | + |
| 265 | + with: |
| 266 | + distribution: 'temurin' |
| 267 | + java-version: 11 |
| 268 | + check-latest: true |
248 | 269 | - name: Set up JDK 17
|
| 270 | + if: ${{ !contains( inputs.branch, 'wip/2' ) }} |
249 | 271 |
|
250 | 272 | with:
|
251 | 273 | distribution: 'temurin'
|
|
0 commit comments