pull_request:
workflow_call:
+permissions:
+ contents: read # to fetch code (actions/checkout)
+
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
- java: [ '17', '19' ]
+ java: [ '17', '20' ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
- distribution: 'adopt'
+ distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: Build with Gradle