|
99 | 99 | .gradle/wrapper
|
100 | 100 | # refresh cache every month to avoid unlimited growth
|
101 | 101 | key: gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
|
| 102 | + - name: Set up JDK 11 |
| 103 | + if: ${{ startsWith( inputs.branch, 'wip/2' ) }} |
| 104 | + |
| 105 | + with: |
| 106 | + distribution: 'temurin' |
| 107 | + java-version: 11 |
102 | 108 | - name: Set up JDK 17
|
| 109 | + if: ${{ !startsWith( inputs.branch, 'wip/2' ) }} |
103 | 110 |
|
104 | 111 | with:
|
105 | 112 | distribution: 'temurin'
|
@@ -141,8 +148,16 @@ jobs:
|
141 | 148 | .gradle/wrapper
|
142 | 149 | # refresh cache every month to avoid unlimited growth
|
143 | 150 | key: gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
|
| 151 | + - name: Set up JDK 11 |
| 152 | + if: ${{ startsWith( inputs.branch, 'wip/2' ) }} |
| 153 | + |
| 154 | + with: |
| 155 | + distribution: 'temurin' |
| 156 | + java-version: 11 |
144 | 157 | - name: Set up JDK 17
|
| 158 | + if: ${{ !startsWith( inputs.branch, 'wip/2' ) }} |
145 | 159 |
|
| 160 | + |
146 | 161 | with:
|
147 | 162 | distribution: 'temurin'
|
148 | 163 | java-version: 17
|
@@ -249,8 +264,15 @@ jobs:
|
249 | 264 | - name: Export path to JDK ${{ matrix.java.name }}
|
250 | 265 | id: testjdk-exportpath
|
251 | 266 | run: echo "::set-output name=path::${JAVA_HOME}"
|
252 |
| - # Always use JDK 11 to build the main code: that's what we use for releases. |
| 267 | + - name: Set up JDK 11 |
| 268 | + if: ${{ startsWith( inputs.branch, 'wip/2' ) }} |
| 269 | + |
| 270 | + with: |
| 271 | + distribution: 'temurin' |
| 272 | + java-version: 11 |
| 273 | + check-latest: true |
253 | 274 | - name: Set up JDK 17
|
| 275 | + if: ${{ !startsWith( inputs.branch, 'wip/2' ) }} |
254 | 276 |
|
255 | 277 | with:
|
256 | 278 | distribution: 'temurin'
|
|
0 commit comments