Skip to content

Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.11.2 #68

Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.11.2

Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.11.2 #68

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest"]
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v2
- name: setup JDK 11
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: cache maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: build with maven
run: mvn -B package --file pom.xml
- name: get project version
id: project
if: ${{ runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
- name: publish with maven
if: ${{ runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main' && endsWith(steps.project.outputs.version, '-SNAPSHOT')}}
run: mvn --batch-mode -DuseGitHubPackages=true deploy
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }}