Last active
September 20, 2021 22:25
-
-
Save rhamiltonsf/4a0bf8b56deb5b5bdcc66c76655708e8 to your computer and use it in GitHub Desktop.
[spring/spring-boot] Test POM
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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.openapi</groupId> | |
<artifactId>spec-test</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<properties> | |
<api.file>${project.basedir}/src/main/resources/api.yaml</api.file> | |
<openapi.config.generatorName>spring</openapi.config.generatorName> | |
<openapi.config.library>spring-boot</openapi.config.library> | |
<openapi.config.generateModels>true</openapi.config.generateModels> | |
<openapi.config.generateApis>true</openapi.config.generateApis> | |
<openapi.version>5.2.1</openapi.version> | |
<maven.compiler.source>1.8</maven.compiler.source> | |
<maven.compiler.target>1.8</maven.compiler.target> | |
<spring-boot.version>2.2.5.RELEASE</spring-boot.version> | |
<spring.version>5.2.4.RELEASE</spring.version> | |
<spring-fox.version>2.6.1</spring-fox.version> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.openapitools</groupId> | |
<artifactId>openapi-generator-maven-plugin</artifactId> | |
<version>${openapi.version}</version> | |
<executions> | |
<execution> | |
<id>generate-${project.artifactId}</id> | |
<goals> | |
<goal>generate</goal> | |
</goals> | |
<configuration> | |
<inputSpec>${api.file}</inputSpec> | |
<generatorName>${openapi.config.generatorName}</generatorName> | |
<library>${openapi.config.library}</library> | |
<configOptions> | |
<sourceFolder>api</sourceFolder> | |
<dateLibrary>java8</dateLibrary> | |
<serializableModel>true</serializableModel> | |
<delegatePattern>true</delegatePattern> | |
<defaultInterfaces>true</defaultInterfaces> | |
<useBeanValidation>true</useBeanValidation> | |
<useTags>true</useTags> | |
</configOptions> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-core</artifactId> | |
<version>2.5.4</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-databind</artifactId> | |
<version>2.10.2</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot</artifactId> | |
<version>${spring-boot.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-autoconfigure</artifactId> | |
<version>${spring-boot.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-autoconfigure</artifactId> | |
<version>${spring-boot.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>io.springfox</groupId> | |
<artifactId>springfox-swagger2</artifactId> | |
<version>2.0.1</version> | |
</dependency> | |
<dependency> | |
<groupId>io.swagger</groupId> | |
<artifactId>swagger-annotations</artifactId> | |
<version>1.5.13</version> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>javax.servlet-api</artifactId> | |
<version>4.0.1</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-core</artifactId> | |
<version>${spring.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-webmvc</artifactId> | |
<version>${spring.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>javax.validation</groupId> | |
<artifactId>validation-api</artifactId> | |
<version>2.0.1.Final</version> | |
</dependency> | |
<dependency> | |
<groupId>javax.xml.bind</groupId> | |
<artifactId>jaxb-api</artifactId> | |
<version>2.3.1</version> | |
</dependency> | |
<dependency> | |
<groupId>io.springfox</groupId> | |
<artifactId>springfox-core</artifactId> | |
<version>${spring-fox.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>io.springfox</groupId> | |
<artifactId>springfox-spring-web</artifactId> | |
<version>${spring-fox.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.openapitools</groupId> | |
<artifactId>openapi-generator-online</artifactId> | |
<version>${openapi.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.openapitools</groupId> | |
<artifactId>jackson-databind-nullable</artifactId> | |
<version>0.2.1</version> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment