1# Licensed to the Apache Software Foundation (ASF) under one or more 2# contributor license agreements. See the NOTICE file distributed with 3# this work for additional information regarding copyright ownership. 4# The ASF licenses this file to You under the Apache License, Version 2.0 5# (the "License"); you may not use this file except in compliance with 6# the License. You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16name: Java CI 17 18on: [push, pull_request] 19 20permissions: 21 contents: read 22 23jobs: 24 build: 25 26 runs-on: ubuntu-latest 27 continue-on-error: ${{ matrix.experimental }} 28 strategy: 29 matrix: 30 java: [ 8, 11, 17 ] 31 experimental: [false] 32# include: 33# - java: 18-ea 34# experimental: true 35 steps: 36 - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c 37 with: 38 persist-credentials: false 39 - uses: actions/cache@v3.2.5 40 with: 41 path: ~/.m2/repository 42 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} 43 restore-keys: | 44 ${{ runner.os }}-maven- 45 - name: Set up JDK ${{ matrix.java }} 46 uses: actions/setup-java@v3.10.0 47 with: 48 distribution: 'temurin' 49 java-version: ${{ matrix.java }} 50 - name: Build with Maven 51 run: mvn -V -Ddoclint=all --file pom.xml --no-transfer-progress 52