mirror of
https://github.com/valitydev/swag-cabi.git
synced 2024-11-06 01:45:24 +00:00
209 lines
8.3 KiB
XML
209 lines
8.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>
|
|
|
|
<parent>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>library-parent-pom</artifactId>
|
|
<version>1.0.2</version>
|
|
</parent>
|
|
|
|
<artifactId>swag-cabi</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Cabi</name>
|
|
<description>Generates jar artifact containing compiled swagger classes based on generated swagger yaml files
|
|
</description>
|
|
|
|
<properties>
|
|
<default.package>dev.vality.swag.cabi</default.package>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<swagger-annotations-version>1.5.21</swagger-annotations-version>
|
|
<jodatime-version>2.7</jodatime-version>
|
|
<maven-plugin-version>1.0.0</maven-plugin-version>
|
|
<java.version>11</java.version>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
<jetty-version>9.2.15.v20160210</jetty-version>
|
|
<slf4j-version>1.7.21</slf4j-version>
|
|
<junit-version>4.12</junit-version>
|
|
<servlet-api-version>2.5</servlet-api-version>
|
|
<springfox-version>3.0.0</springfox-version>
|
|
<jackson-version>2.11.3</jackson-version>
|
|
<jackson-threetenbp-version>2.6.4</jackson-threetenbp-version>
|
|
<spring-version>5.3.1</spring-version>
|
|
<javax-annotation-api-version>1.3.2</javax-annotation-api-version>
|
|
<javax-validation-api-version>1.1.0.Final</javax-validation-api-version>
|
|
<jaxb-version>2.3.1</jaxb-version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
<version>${slf4j-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!--Spring dependencies -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-core</artifactId>
|
|
<version>${spring-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-webmvc</artifactId>
|
|
<version>${spring-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-web</artifactId>
|
|
<version>${spring-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!--SpringFox dependencies-->
|
|
<dependency>
|
|
<groupId>io.springfox</groupId>
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
<version>${springfox-version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.springfox</groupId>
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
<version>${springfox-version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
<version>${jackson-version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>${junit-version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
<version>${servlet-api-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.annotation</groupId>
|
|
<artifactId>javax.annotation-api</artifactId>
|
|
<version>${javax-annotation-api-version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.xml.bind</groupId>
|
|
<artifactId>jaxb-api</artifactId>
|
|
<version>${jaxb-version}</version>
|
|
</dependency>
|
|
<!-- Bean Validation API support -->
|
|
<dependency>
|
|
<groupId>javax.validation</groupId>
|
|
<artifactId>validation-api</artifactId>
|
|
<version>${javax-validation-api-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger.core.v3</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>2.0.10</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
<version>4.5.2</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>server</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.swagger.codegen.v3</groupId>
|
|
<artifactId>swagger-codegen-maven-plugin</artifactId>
|
|
<version>3.0.13</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-server</id>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>web_deploy/swagger.yaml</inputSpec>
|
|
<language>java</language>
|
|
<configOptions>
|
|
<dateLibrary>java8</dateLibrary>
|
|
</configOptions>
|
|
<language>spring</language>
|
|
<library>spring-mvc</library>
|
|
<apiPackage>${default.package}.api</apiPackage>
|
|
<modelPackage>${default.package}.model</modelPackage>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>client</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.swagger.codegen.v3</groupId>
|
|
<artifactId>swagger-codegen-maven-plugin</artifactId>
|
|
<version>3.0.13</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-client</id>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>web_deploy/swagger.yaml</inputSpec>
|
|
<language>java</language>
|
|
<configOptions>
|
|
<dateLibrary>java8</dateLibrary>
|
|
</configOptions>
|
|
<language>java</language>
|
|
<library>resttemplate</library>
|
|
<apiPackage>${default.package}.api</apiPackage>
|
|
<modelPackage>${default.package}.model</modelPackage>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|