Skip to content

[Backport 1.16] update to Java 11 source code level #793

[Backport 1.16] update to Java 11 source code level

[Backport 1.16] update to Java 11 source code level #793

Workflow file for this run

name: Build project with Maven
on:
pull_request:
schedule:
- cron: '2 2 * * 1-5' # run nightly master builds on weekdays
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17' ]
name: Java ${{ matrix.Java }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Java setup
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Maven
run: mvn -B clean verify com.mycila:license-maven-plugin:check