name: maven-build
on:
push:
branches: '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 16 ]
steps:
- uses: actions/checkout@v2
- name: setup-jdk-${{ matrix.java }}
uses: actions/setup-java@v2.1.0
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: build-jar
run: mvn -B install
- name: verify javadoc
run: mvn -P release javadoc:javadoc