name: "Build Gradle project"
on: [ push, pull_request, workflow_dispatch ]

jobs:
    build:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                java-version: [ 11, 17 ]
                gradle-version: [ 6.1.1, 6.9, 7.0.2, 7.2 ]
        name: Test JVM/Gradle (${{ matrix.java-version }}, ${{ matrix.gradle-version }})
        steps:
            -   name: Check out project
                uses: actions/checkout@v2
            -   name: Set up JDK 11
                uses: actions/setup-java@v1
                with:
                    java-version: 11
            -   name: Build with Gradle
                uses: gradle/gradle-build-action@v2
                with:
                    arguments: build -PtestJavaRuntimeVersion=${{ matrix.java-version }} -PtestGradleVersion=${{ matrix.gradle-version }} -Pgradle-jooq-plugin.acceptGradleTOS=true

name: "Build Gradle project"
on: [ push, pull_request, workflow_dispatch ]

jobs:
    build:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                java-version: [ 11, 16 ]
                gradle-version: [ 6.1.1, 6.9, 7.0.2, 7.2 ]
        name: Test JVM/Gradle (${{ matrix.java-version }}, ${{ matrix.gradle-version }})
        steps:
            -   name: Check out project
                uses: actions/checkout@v2
            -   name: Set up JDK 11
                uses: actions/setup-java@v1
                with:
                    java-version: 11
            -   name: Build with Gradle
                uses: gradle/gradle-build-action@v2
                with:
                    arguments: build -PtestJavaRuntimeVersion=${{ matrix.java-version }} -PtestGradleVersion=${{ matrix.gradle-version }} -Pgradle-jooq-plugin.acceptGradleTOS=true

Revert "Test against JDK 17 instead of JDK 16 (plus JDK 11 as before)"
Revert "Test against JDK 17 instead of JDK 16 (plus JDK 11 as before)"

This reverts commit 57f593b50d9896d75f148d4ebfab8ac2e42a2a31.
