Skip to content

Add Java 21 build

Add Java 21 build #17

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: ["8", "11", "17", "21"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '${{ matrix.java-version }}'
cache: gradle
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
- name: Build
run: ./gradlew build