diff --git a/.github/workflows/maven-plugin-tests-jdk17.yaml b/.github/workflows/maven-plugin-tests-jdk17.yaml
new file mode 100644
index 000000000000..dfd70875be4d
--- /dev/null
+++ b/.github/workflows/maven-plugin-tests-jdk17.yaml
@@ -0,0 +1,44 @@
+name: Maven plugin tests (JDK17)
+
+on:
+ push:
+ paths:
+ - modules/openapi-generator-maven-plugin/**
+ pull_request:
+ paths:
+ - modules/openapi-generator-maven-plugin/**
+
+jobs:
+ test:
+ name: Maven plugin tests
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v5
+ - name: Set up JDK 17
+ uses: actions/setup-java@v5
+ with:
+ java-version: 17
+ distribution: 'temurin'
+ - name: Cache maven dependencies
+ uses: actions/cache@v5
+ env:
+ cache-name: cache-maven-repository
+ with:
+ path: |
+ ~/.m2/repository
+ ~/.gradle
+ !~/.gradle/caches/*/plugin-resolution/
+ !~/.m2/repository/org/openapitools/
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-test-maven-plugin-${{ env.cache-name }}-
+ ${{ runner.os }}-test-maven-plugin-
+ - name: Run tests
+ env:
+ GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
+ run: |
+ ./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
+ ./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ ./mvnw --no-snapshot-updates --quiet clean install -f modules/openapi-generator-maven-plugin/examples/multi-module/sample-external-ref-schema/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ ./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ ./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
diff --git a/.github/workflows/maven-plugin-tests.yaml b/.github/workflows/maven-plugin-tests.yaml
index d57be992a169..81e2ce5b8e38 100644
--- a/.github/workflows/maven-plugin-tests.yaml
+++ b/.github/workflows/maven-plugin-tests.yaml
@@ -41,5 +41,5 @@ jobs:
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
./mvnw --no-snapshot-updates --quiet clean install -f modules/openapi-generator-maven-plugin/examples/multi-module/sample-external-ref-schema/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- ./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- ./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ # test in JDK17 workflow instead
+ #./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
diff --git a/modules/openapi-generator-maven-plugin/examples/kotlin.xml b/modules/openapi-generator-maven-plugin/examples/kotlin.xml
deleted file mode 100644
index 4a1b8bb9fa8c..000000000000
--- a/modules/openapi-generator-maven-plugin/examples/kotlin.xml
+++ /dev/null
@@ -1,245 +0,0 @@
-
- 4.0.0
- org.openapitools
- sample-project
- jar
- 1.0-SNAPSHOT
- sample-project
- https://maven.apache.org
-
-
-
-
-
- org.openapitools
- openapi-generator-maven-plugin
-
- 7.22.0-SNAPSHOT
-
-
-
- default
-
- generate
-
-
-
- ${project.basedir}/swagger.yaml
- true
-
-
- kotlin
-
-
-
-
-
- true
-
-
-
-
-
- kotlin
- generate-sources
-
- generate
-
-
-
- https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml
-
-
-
- kotlin
-
-
-
-
-
- true
-
-
-
- kotlintest.org.openapitools.client.api
- kotlintest.org.openapitools.client.model
- kotlintest.org.openapitools.client
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.8.1
-
- 1.8
- 1.8
- none
-
-
-
- kotlin-maven-plugin
- org.jetbrains.kotlin
-
- ${kotlinJvmTarget}
-
-
-
-
- compile
-
- compile
-
-
-
- ${project.build.directory}/generated-sources/kotlin/src/main/kotlin
-
-
-
-
-
-
-
-
-
- kotlin-maven-plugin
- org.jetbrains.kotlin
- ${kotlin.version}
-
-
-
-
-
-
- sonatype-snapshots
- https://oss.sonatype.org/content/repositories/snapshots/
-
-
-
-
-
-
- io.swagger
- swagger-annotations
- ${swagger-annotations-version}
-
-
-
-
-
-
- org.glassfish.jersey.core
- jersey-client
- ${jersey-version}
-
-
- org.glassfish.jersey.media
- jersey-media-multipart
- ${jersey-version}
-
-
- org.glassfish.jersey.media
- jersey-media-json-jackson
- ${jersey-version}
-
-
-
-
- com.google.code.findbugs
- jsr305
- 3.0.2
-
-
-
-
- com.fasterxml.jackson.jaxrs
- jackson-jaxrs-base
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-core
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-annotations
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-databind
- ${jackson-version}
-
-
- com.fasterxml.jackson.jaxrs
- jackson-jaxrs-json-provider
- ${jackson-version}
-
-
- org.openapitools
- jackson-databind-nullable
- ${jackson-databind-nullable-version}
-
-
-
-
- com.fasterxml.jackson.datatype
- jackson-datatype-joda
- ${jackson-version}
-
-
- joda-time
- joda-time
- ${jodatime-version}
-
-
-
-
- com.brsanthu
- migbase64
- ${migbase64.version}
-
-
- com.squareup.moshi
- moshi-kotlin
- ${moshi-kotlin.version}
-
-
- com.squareup.moshi
- moshi-adapters
- ${moshi-kotlin.version}
-
-
- com.squareup.okhttp3
- okhttp
- 4.2.2
-
-
-
-
- org.jetbrains.kotlin
- kotlin-stdlib
- ${kotlin.version}
-
-
-
-
- 1.5.8
- 2.27
- 2.19.2
- 0.2.7
- 2.7
- 1.0.0
- 4.13.2
- 1.5.10
- 1.8
- 1.12.0
- 2.2
-
-
diff --git a/modules/openapi-generator-maven-plugin/examples/spring.xml b/modules/openapi-generator-maven-plugin/examples/spring.xml
index 74fb483a92ea..9dd4af4b6d49 100644
--- a/modules/openapi-generator-maven-plugin/examples/spring.xml
+++ b/modules/openapi-generator-maven-plugin/examples/spring.xml
@@ -11,7 +11,7 @@
org.springframework.boot
spring-boot-starter-parent
- 2.7.15
+ 3.3.13
@@ -40,7 +40,6 @@
- springfox
true
true
@@ -50,16 +49,6 @@
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.11.0
-
- 1.8
- 1.8
- none
-
-
@@ -80,11 +69,6 @@
spring-data-commons
-
- io.springfox
- springfox-swagger2
- ${springfox.version}
-
org.webjars
swagger-ui
@@ -100,6 +84,11 @@
jsr305
3.0.2
+
+ org.springdoc
+ springdoc-openapi-starter-webmvc-ui
+ ${springdoc.version}
+
com.fasterxml.jackson.dataformat
jackson-dataformat-yaml
@@ -129,7 +118,7 @@
- 2.9.2
4.15.5
+ 2.6.0