Skip to content

Update dependency com.github.spotbugs:spotbugs-maven-plugin to v4.10.3.0 #777

Update dependency com.github.spotbugs:spotbugs-maven-plugin to v4.10.3.0

Update dependency com.github.spotbugs:spotbugs-maven-plugin to v4.10.3.0 #777

Workflow file for this run

name: Java CI
env:
JDK_CURRENT: 17
DISTRIBUTION: zulu
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Set up JDK
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5
with:
java-version: ${{ env.JDK_CURRENT }}
distribution: ${{ env.DISTRIBUTION }}
- name: Cache Maven dependencies
uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B clean install
deploy:
if: startsWith(github.ref, 'refs/heads/')
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Set up JDK
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5
with:
java-version: ${{ env.JDK_CURRENT }}
distribution: ${{ env.DISTRIBUTION }}
server-id: central-portal-snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Deploy to Sonatype
run: mvn -B -DskipTests deploy
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PWD }}