Skip to content

Bump swagger.version from 2.2.47 to 2.2.48 (#748) #1636

Bump swagger.version from 2.2.47 to 2.2.48 (#748)

Bump swagger.version from 2.2.47 to 2.2.48 (#748) #1636

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
name: Maven Build
runs-on: ubuntu-24.04-arm
strategy:
matrix:
openapi-generator-maven-plugin-version: [
7.21.0,
7.20.0,
7.19.0,
7.18.0,
7.17.0,
7.16.0,
7.15.0,
7.14.0,
7.13.0,
7.12.0,
7.11.0
]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up JDK
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Maven Build - openapi-generator-maven-plugin:${{ matrix.openapi-generator-maven-plugin-version }}
run: |
# Check Modules to Skip Building
# Skip test-spring, since the mustache templates are not backwards compatible with these versions
SPRING_INCOMPATIBLE_VERSIONS="7.11.0 7.12.0 7.13.0 7.14.0 7.15.0 7.16.0 7.17.0 7.18.0 7.19.0 7.20.0"
SKIP_FLAG=""
if [[ $SPRING_INCOMPATIBLE_VERSIONS =~ "${{ matrix.openapi-generator-maven-plugin-version }}" ]]; then
echo "Incompatible version detected. Skipping test-spring module."
SKIP_FLAG="-pl \"!test-spring\""
fi
mvn -B package $SKIP_FLAG --no-transfer-progress --file pom.xml -Dopenapi-generator-maven-plugin.version=${{ matrix.openapi-generator-maven-plugin-version }}