Bump com.fasterxml.jackson.datatype:jackson-datatype-joda from 2.17.2 to 2.18.0 #230
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: [ master ] | |
paths: | |
- '**/src/**' | |
- '**/pom.xml' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- '**/src/**' | |
- '**/pom.xml' | |
workflow_dispatch: | |
inputs: | |
tags: | |
description: 'Run reason' | |
required: true | |
default: 'Simple UI trigger' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ 11, 17, 21 ] | |
outputs: | |
pom-version: ${{ steps.get-pom-version.outputs.pom-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'zulu' | |
- name: Build with Maven | |
run: mvn -B clean package --file pom.xml --no-transfer-progress | |
- name: Get POM version | |
id: get-pom-version | |
run: | | |
VERSION=$( mvn -B help:evaluate -Dexpression=project.version -q -DforceStdout --file pom.xml --no-transfer-progress ) | |
echo "Found project version: $VERSION" | |
echo "pom-version=$VERSION" >> $GITHUB_OUTPUT | |
publish-snapshot: | |
needs: build | |
runs-on: ubuntu-latest | |
if: ${{ contains(needs.build.outputs.pom-version, 'SNAPSHOT') && github.event_name != 'pull_request' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up settings.xml for OSS | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: 'zulu' | |
server-id: oss.sonatype.org | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | |
gpg-passphrase: MAVEN_GPG_PASSPHRASE | |
- name: Publish SNAPSHOT version to OSS | |
run: mvn -B clean deploy --no-transfer-progress -DskipTests=true --file pom.xml | |
env: | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USER }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASS }} | |
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |