Unverified Commit 69c4e313 authored by Jérôme Prinet's avatar Jérôme Prinet Committed by GitHub
Browse files

Run Gradle release candidate tests with JDK 17 (#690)

### Issue
Since Gradle 9, JDK 17 is the minimal version to run Gradle
([ref](https://gradle.org/whats-new/gradle-9/#java-17-is-the-minimum-version-to-run-gradle))
Some of the GH workflows in this repository are failing
([example](https://github.com/gradle/actions/actions/runs/16417315636/job/46386404481#step:9:35))
when running against the release candidate (being Gradle 9)

### Fix
Create a dedicated provision-gradle job with JDK 17 instead of the
default 11.
This change is a minimalistic way to fix the issue.
parents b7d91bc6 f03b6339
Loading
Loading
Loading
Loading
+22 −7
Changes for .github/workflows/integ-test-provision-gradle-versions.yml: 22 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -52,13 +52,6 @@ jobs:
    - name: Test uses Gradle v7.1.1
      working-directory: .github/workflow-samples/no-wrapper
      run: gradle help "-DgradleVersionCheck=7.1.1"
    - name: Setup Gradle with release-candidate
      uses: ./setup-gradle
      with:
        gradle-version: release-candidate
    - name: Test use release-candidate
      working-directory: .github/workflow-samples/no-wrapper
      run: gradle help
    - name: Setup Gradle with current
      id: gradle-current
      uses: ./setup-gradle
@@ -74,6 +67,28 @@ jobs:
        script: |
          core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.gradle-current.outputs.gradle-version }}"')    

  provision-gradle-with-jdk-17:
    strategy:
      max-parallel: 1
      fail-fast: false
      matrix:
        os: ${{fromJSON(inputs.runner-os)}}
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout sources
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
      - name: Initialize integ-test
        uses: ./.github/actions/init-integ-test
        with:
          java-version: '17'
      - name: Setup Gradle with release-candidate
        uses: ./setup-gradle
        with:
          gradle-version: release-candidate
      - name: Test use release-candidate
        working-directory: .github/workflow-samples/no-wrapper
        run: gradle help
  
  provision-gradle-version:
    strategy:
      fail-fast: false