JAVA-26758: Upgrade openapi-generator-maven-plugin (#15257)

This commit is contained in:
Bipin kumar 2024-01-06 16:51:26 +05:30 committed by GitHub
parent a2e4f08f8f
commit 0a18e140e3
4 changed files with 28 additions and 13 deletions

View File

@ -35,15 +35,25 @@
<artifactId>javax.annotation-api</artifactId> <artifactId>javax.annotation-api</artifactId>
<version>${javax.annotation}</version> <version>${javax.annotation}</version>
</dependency> </dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>${swagger.annotation}</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
<version>${swagger-annotations.version}</version>
</dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable.version}</version>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>${validation-api.version}</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
@ -58,7 +68,7 @@
</goals> </goals>
<configuration> <configuration>
<inputSpec>${project.basedir}/src/main/resources/bookapi.yml</inputSpec> <inputSpec>${project.basedir}/src/main/resources/bookapi.yml</inputSpec>
<generatorName>java</generatorName> <generatorName>spring</generatorName>
<modelPackage>com.baeldung.openapi.model</modelPackage> <modelPackage>com.baeldung.openapi.model</modelPackage>
<configOptions> <configOptions>
<additionalModelTypeAnnotations>@lombok.Data @lombok.NoArgsConstructor @lombok.AllArgsConstructor</additionalModelTypeAnnotations> <additionalModelTypeAnnotations>@lombok.Data @lombok.NoArgsConstructor @lombok.AllArgsConstructor</additionalModelTypeAnnotations>
@ -73,10 +83,13 @@
</plugins> </plugins>
</build> </build>
<properties> <properties>
<openapi.version>4.2.3</openapi.version> <openapi.version>7.1.0</openapi.version>
<gson.version>2.10.1</gson.version> <gson.version>2.10.1</gson.version>
<javax.annotation>1.3.2</javax.annotation> <javax.annotation>1.3.2</javax.annotation>
<swagger.annotation>1.6.2</swagger.annotation> <swagger.annotation>1.6.2</swagger.annotation>
<swagger-annotations.version>2.2.19</swagger-annotations.version>
<jackson-databind-nullable.version>0.2.6</jackson-databind-nullable.version>
<validation-api.version>2.0.1.Final</validation-api.version>
</properties> </properties>
</project> </project>

View File

@ -25,10 +25,6 @@ components:
schemas: schemas:
Book: Book:
type: object type: object
required:
- id
- name
- author
properties: properties:
id: id:
type: integer type: integer

View File

@ -166,7 +166,7 @@
<spring-modulith-bom.version>0.5.1</spring-modulith-bom.version> <spring-modulith-bom.version>0.5.1</spring-modulith-bom.version>
<jobrunr-spring-boot-starter.version>3.1.1</jobrunr-spring-boot-starter.version> <jobrunr-spring-boot-starter.version>3.1.1</jobrunr-spring-boot-starter.version>
<awaitility.version>4.0.3</awaitility.version> <awaitility.version>4.0.3</awaitility.version>
<openapi-generator.version>5.3.0</openapi-generator.version> <openapi-generator.version>7.1.0</openapi-generator.version>
<spring.data.version>2.4.5</spring.data.version> <spring.data.version>2.4.5</spring.data.version>
<jackson-databind-nullable.version>0.2.1</jackson-databind-nullable.version> <jackson-databind-nullable.version>0.2.1</jackson-databind-nullable.version>
<reflections.version>0.10.2</reflections.version> <reflections.version>0.10.2</reflections.version>

View File

@ -43,6 +43,11 @@
<artifactId>springfox-swagger2</artifactId> <artifactId>springfox-swagger2</artifactId>
<version>${springfox.version}</version> <version>${springfox.version}</version>
</dependency> </dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
<version>${swagger-annotations.version}</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
@ -133,11 +138,12 @@
</build> </build>
<properties> <properties>
<openapi-generator.version>6.2.1</openapi-generator.version> <openapi-generator.version>7.1.0</openapi-generator.version>
<springfox.version>3.0.0</springfox.version> <springfox.version>3.0.0</springfox.version>
<swagger-codegen-maven-plugin.version>3.0.34</swagger-codegen-maven-plugin.version> <swagger-codegen-maven-plugin.version>3.0.34</swagger-codegen-maven-plugin.version>
<springdoc.version>1.6.10</springdoc.version> <springdoc.version>1.6.10</springdoc.version>
<swagger-maven-plugin.version>3.1.1</swagger-maven-plugin.version> <swagger-maven-plugin.version>3.1.1</swagger-maven-plugin.version>
<swagger-annotations.version>2.2.19</swagger-annotations.version>
<start-class>com.baeldung.tworesponses.Application</start-class> <start-class>com.baeldung.tworesponses.Application</start-class>
</properties> </properties>