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

jobs:
    build:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                java: [ 8, 11, 17 ]
        name: Test on Java ${{ matrix.java }}
        steps:
            -   name: Check out project
                uses: actions/checkout@v2
            -   name: Set up JDK 8
                uses: actions/setup-java@v1
                with:
                    java-version: 8
            -   name: Build with Gradle
                uses: gradle/gradle-build-action@v1
                with:
                    arguments: build testAll -PtestJavaRuntimeVersion=${{ matrix.java }} -Pgradle-plugindev-plugin.acceptGradleTOS=true
                    distributions-cache-enabled: true
                    dependencies-cache-enabled: true
                    configuration-cache-enabled: false


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

jobs:
    build:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                java: [ 8, 11, 16 ]
        name: Test on Java ${{ matrix.java }}
        steps:
            -   name: Check out project
                uses: actions/checkout@v2
            -   name: Set up JDK 8
                uses: actions/setup-java@v1
                with:
                    java-version: 8
            -   name: Build with Gradle
                uses: gradle/gradle-build-action@v1
                with:
                    arguments: build testAll -PtestJavaRuntimeVersion=${{ matrix.java }} -Pgradle-plugindev-plugin.acceptGradleTOS=true
                    distributions-cache-enabled: true
                    dependencies-cache-enabled: true
                    configuration-cache-enabled: false


Change from JDK 17 to JDK 16 since 17 is not yet released
Change from JDK 17 to JDK 16 since 17 is not yet released
