mirror of
https://github.com/valitydev/swag-disputes.git
synced 2024-11-06 09:05:20 +00:00
187 lines
7.9 KiB
XML
187 lines
7.9 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>2.0.2</version>
|
|
</parent>
|
|
|
|
<artifactId>swag-disputes</artifactId>
|
|
<version>${revision}</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>disputes</name>
|
|
<description>Generates jar artifact containing compiled openapi classes based on generated openapi yaml files
|
|
</description>
|
|
|
|
<properties>
|
|
<default.package>dev.vality.swag.disputes</default.package>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<revision>SNAPSHOT</revision>
|
|
<java.version>15</java.version>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
<slf4j-version>2.0.13</slf4j-version>
|
|
<junit-version>4.13.2</junit-version>
|
|
<jackson-version>2.13.1</jackson-version>
|
|
<spring-version>2.7.10</spring-version>
|
|
<openapi-generator-version>7.6.0</openapi-generator-version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!--Spring dependencies -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot</artifactId>
|
|
<version>${spring-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-autoconfigure</artifactId>
|
|
<version>${spring-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<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>
|
|
<version>${spring-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!--third part -->
|
|
<dependency>
|
|
<groupId>io.swagger.core.v3</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>2.2.22</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
<version>${slf4j-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.annotation</groupId>
|
|
<artifactId>jakarta.annotation-api</artifactId>
|
|
<version>3.0.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.validation</groupId>
|
|
<artifactId>jakarta.validation-api</artifactId>
|
|
<version>3.1.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.servlet</groupId>
|
|
<artifactId>jakarta.servlet-api</artifactId>
|
|
<version>6.1.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
<version>${jackson-version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>jackson-databind-nullable</artifactId>
|
|
<version>0.2.2</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
<artifactId>jsr305</artifactId>
|
|
<version>3.0.2</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
<version>5.10.2</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>server</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
|
<version>${openapi-generator-version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>spring-server</id>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>web_deploy/openapi.yaml</inputSpec>
|
|
<generatorName>spring</generatorName>
|
|
<generateModels>true</generateModels>
|
|
<generateApis>true</generateApis>
|
|
<generateApiDocumentation>true</generateApiDocumentation>
|
|
<generateSupportingFiles>true</generateSupportingFiles>
|
|
<apiPackage>${default.package}.api</apiPackage>
|
|
<modelPackage>${default.package}.model</modelPackage>
|
|
<supportingFilesToGenerate>ApiUtil.java</supportingFilesToGenerate>
|
|
<skipValidateSpec>true</skipValidateSpec>
|
|
<configOptions>
|
|
<dateLibrary>java8</dateLibrary>
|
|
<delegatePattern>true</delegatePattern>
|
|
<useBeanValidation>true</useBeanValidation>
|
|
<useJakartaEe>true</useJakartaEe>
|
|
</configOptions>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>client</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
|
<version>${openapi-generator-version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>remote</id>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>web_deploy/openapi.yaml</inputSpec>
|
|
<generatorName>java</generatorName>
|
|
<configOptions>
|
|
<dateLibrary>java8</dateLibrary>
|
|
<useJakartaEe>true</useJakartaEe>
|
|
</configOptions>
|
|
<library>resttemplate</library>
|
|
<apiPackage>${default.package}.api</apiPackage>
|
|
<modelPackage>${default.package}.model</modelPackage>
|
|
<skipValidateSpec>true</skipValidateSpec>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|