Skip to content

Upgrade maven-source-plugin 3.2.1 -> 3.3.1 #370

Upgrade maven-source-plugin 3.2.1 -> 3.3.1

Upgrade maven-source-plugin 3.2.1 -> 3.3.1 #370

Workflow file for this run

name: Build and verify
on:
pull_request:
push:
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- jdk: 11.0.16
sonarEnabled: true
- jdk: 17.0.4
sonarEnabled: false
steps:
- name: Check out code
uses: actions/[email protected]
with:
# Fetch entire history for SonarCloud analysis.
fetch-depth: 0
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: ${{ matrix.jdk }}
distribution: temurin
cache: maven
- name: Cache SonarCloud packages
if: ${{ matrix.sonarEnabled }}
uses: actions/[email protected]
with:
path: "${HOME}/.sonar/cache"
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Display build environment details
run: mvn --version
- name: Build project
run: mvn -T1C install
- name: Perform SonarCloud analysis
if: ${{ matrix.sonarEnabled }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn sonar:sonar
- name: Remove installed project artifacts
run: mvn build-helper:remove-project-artifact