Skip to content

Update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.7.0 #367

Update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.7.0

Update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.7.0 #367

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main, release ]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: 'true'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Set Git user
run: |
git config --global committer.email "noreply@github.com"
git config --global committer.name "GitHub"
git config --global author.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global author.name "${GITHUB_ACTOR}"
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Setup Maven settings.xml
uses: whelk-io/maven-settings-xml-action@v20
with:
servers: '[{ "id": "artifactory-releases", "username": "github-deployer", "password": "${env.ARTIFACTORY_TOKEN_REF}" },{ "id": "artifactory-snapshots", "username": "github-deployer", "password": "${env.ARTIFACTORY_TOKEN_REF}"}]'
- name: Set Release version env variable
env:
USERNAME: ${{ github.actor }}
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- name: Build with Maven
env:
USERNAME: ${{ github.actor }}
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./mvnw -B package --file pom.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "**/*-reports/*.xml"
- name: Publish Jar
env:
ARTIFACTORY_USERNAME_REF: github-deployer
ARTIFACTORY_TOKEN_REF: ${{ secrets.ARTIFACTORY_TOKEN }}
BUILD_ENV: 'github-actions'
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./mvnw -B deploy -DskipTests -Pjfrog --file pom.xml
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=lifs-tools_jg --file pom.xml