name: Build
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java: [8, 11]
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.java }}
      - name: Build plugin
        run: |
          ./gradlew downloadDependencies
          mvn verify

name: build
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java: [8, 11, 17]
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-java@v2
        with:
          distribution: 'temurin'
          java-version: ${{ matrix.java }}
          cache: maven
      - run: ./gradlew downloadDependencies
      - run: mvn --batch-mode --update-snapshots verify

Enable cache and use adoptium JDK, including Java 17
Enable cache and use adoptium JDK, including Java 17
