2019-07-30 14:29:17 +00:00
|
|
|
<?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>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>dev.vality</groupId>
|
|
|
|
<artifactId>library-parent-pom</artifactId>
|
2023-08-08 11:07:15 +00:00
|
|
|
<version>1.0.3</version>
|
2019-07-30 14:29:17 +00:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<artifactId>swag-webhook-events</artifactId>
|
2022-02-11 15:17:07 +00:00
|
|
|
<version>${revision}</version>
|
2019-07-30 14:29:17 +00:00
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
2022-02-11 15:17:07 +00:00
|
|
|
<name>Webhook events</name>
|
|
|
|
<description>Generates jar artifact containing compiled openapi classes based on generated openapi yaml files
|
|
|
|
</description>
|
|
|
|
|
2019-07-30 14:29:17 +00:00
|
|
|
<properties>
|
2022-02-11 15:17:07 +00:00
|
|
|
<default.package>dev.vality.swag_webhook_events</default.package>
|
2019-07-30 14:29:17 +00:00
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
2022-02-11 15:17:07 +00:00
|
|
|
<revision>SNAPSHOT</revision>
|
2019-07-30 14:29:17 +00:00
|
|
|
<maven-plugin-version>1.0.0</maven-plugin-version>
|
2022-02-11 15:17:07 +00:00
|
|
|
<java.version>11</java.version>
|
2019-07-30 14:29:17 +00:00
|
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
2023-08-08 11:11:28 +00:00
|
|
|
<slf4j-version>2.0.7</slf4j-version>
|
2022-02-11 15:17:07 +00:00
|
|
|
<junit-version>4.13.2</junit-version>
|
2019-07-30 14:29:17 +00:00
|
|
|
<servlet-api-version>2.5</servlet-api-version>
|
2023-08-08 11:07:15 +00:00
|
|
|
<jackson-version>2.15.2</jackson-version>
|
|
|
|
<spring-version>2.7.14</spring-version>
|
2020-11-19 12:41:22 +00:00
|
|
|
<springfox-version>3.0.0</springfox-version>
|
2022-02-11 15:17:07 +00:00
|
|
|
<javax-annotation-api-version>1.3.2</javax-annotation-api-version>
|
|
|
|
<jaxb-version>2.3.1</jaxb-version>
|
2023-08-08 11:07:15 +00:00
|
|
|
<openapi-generator-version>5.4.0</openapi-generator-version>
|
2019-07-30 14:29:17 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
2022-02-11 15:17:07 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
|
<version>${slf4j-version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2019-07-30 14:29:17 +00:00
|
|
|
<!--Spring dependencies -->
|
|
|
|
<dependency>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot</artifactId>
|
2019-07-30 14:29:17 +00:00
|
|
|
<version>${spring-version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-autoconfigure</artifactId>
|
2019-07-30 14:29:17 +00:00
|
|
|
<version>${spring-version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
<version>${spring-version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.data</groupId>
|
|
|
|
<artifactId>spring-data-commons</artifactId>
|
2019-07-30 14:29:17 +00:00
|
|
|
<version>${spring-version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!--SpringFox dependencies-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.springfox</groupId>
|
|
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
|
|
<version>${springfox-version}</version>
|
2022-02-11 15:17:07 +00:00
|
|
|
<scope>provided</scope>
|
2019-07-30 14:29:17 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.springfox</groupId>
|
|
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
|
|
<version>${springfox-version}</version>
|
2022-02-11 15:17:07 +00:00
|
|
|
<scope>provided</scope>
|
2019-07-30 14:29:17 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>io.swagger</groupId>
|
|
|
|
<artifactId>swagger-annotations</artifactId>
|
2023-08-08 11:07:15 +00:00
|
|
|
<version>1.6.11</version>
|
2022-02-11 15:17:07 +00:00
|
|
|
<scope>provided</scope>
|
2019-07-30 14:29:17 +00:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
|
|
<version>${jackson-version}</version>
|
2019-07-30 14:29:17 +00:00
|
|
|
</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>
|
2022-02-11 15:17:07 +00:00
|
|
|
<version>${javax-annotation-api-version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.validation</groupId>
|
|
|
|
<artifactId>validation-api</artifactId>
|
|
|
|
<version>2.0.1.Final</version>
|
|
|
|
<scope>provided</scope>
|
2019-07-30 14:29:17 +00:00
|
|
|
</dependency>
|
2022-02-11 15:17:07 +00:00
|
|
|
|
2019-07-30 14:29:17 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.xml.bind</groupId>
|
|
|
|
<artifactId>jaxb-api</artifactId>
|
2022-02-11 15:17:07 +00:00
|
|
|
<version>${jaxb-version}</version>
|
2019-07-30 14:29:17 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
|
|
<artifactId>jsr305</artifactId>
|
|
|
|
<version>3.0.2</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.openapitools</groupId>
|
|
|
|
<artifactId>jackson-databind-nullable</artifactId>
|
2023-08-08 11:07:15 +00:00
|
|
|
<version>0.2.6</version>
|
2019-07-30 14:29:17 +00:00
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<version>${junit-version}</version>
|
2019-07-30 14:29:17 +00:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>server</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>org.openapitools</groupId>
|
|
|
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
|
|
|
<version>${openapi-generator-version}</version>
|
2019-07-30 14:29:17 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2022-02-11 15:17:07 +00:00
|
|
|
<id>spring-server</id>
|
2019-07-30 14:29:17 +00:00
|
|
|
<goals>
|
|
|
|
<goal>generate</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2022-02-11 15:17:07 +00:00
|
|
|
<inputSpec>web_deploy/openapi.yaml</inputSpec>
|
|
|
|
<generatorName>spring</generatorName>
|
|
|
|
<generateModels>true</generateModels>
|
|
|
|
<generateApis>true</generateApis>
|
|
|
|
<generateApiDocumentation>true</generateApiDocumentation>
|
|
|
|
<generateSupportingFiles>true</generateSupportingFiles>
|
2019-07-30 14:29:17 +00:00
|
|
|
<apiPackage>${default.package}.api</apiPackage>
|
|
|
|
<modelPackage>${default.package}.model</modelPackage>
|
2022-02-11 15:17:07 +00:00
|
|
|
<supportingFilesToGenerate>ApiUtil.java</supportingFilesToGenerate>
|
2019-07-30 14:29:17 +00:00
|
|
|
<configOptions>
|
|
|
|
<dateLibrary>java8</dateLibrary>
|
2022-02-11 15:17:07 +00:00
|
|
|
<delegatePattern>true</delegatePattern>
|
|
|
|
<useBeanValidation>true</useBeanValidation>
|
2019-07-30 14:29:17 +00:00
|
|
|
</configOptions>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
2022-02-11 15:17:07 +00:00
|
|
|
<id>client</id>
|
2019-07-30 14:29:17 +00:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2022-02-11 15:17:07 +00:00
|
|
|
<groupId>org.openapitools</groupId>
|
|
|
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
|
|
|
<version>${openapi-generator-version}</version>
|
2019-07-30 14:29:17 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2022-02-11 15:17:07 +00:00
|
|
|
<id>remote</id>
|
2019-07-30 14:29:17 +00:00
|
|
|
<goals>
|
|
|
|
<goal>generate</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2022-02-11 15:17:07 +00:00
|
|
|
<inputSpec>web_deploy/openapi.yaml</inputSpec>
|
|
|
|
<generatorName>java</generatorName>
|
2019-07-30 14:29:17 +00:00
|
|
|
<configOptions>
|
|
|
|
<dateLibrary>java8</dateLibrary>
|
|
|
|
</configOptions>
|
2022-02-11 15:17:07 +00:00
|
|
|
<library>resttemplate</library>
|
2019-07-30 14:29:17 +00:00
|
|
|
<apiPackage>${default.package}.api</apiPackage>
|
|
|
|
<modelPackage>${default.package}.model</modelPackage>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|