mirror of
https://github.com/valitydev/disputes-api.git
synced 2024-11-06 00:55:23 +00:00
410 lines
15 KiB
XML
410 lines
15 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>service-parent-pom</artifactId>
|
|
<version>3.0.2</version>
|
|
</parent>
|
|
|
|
<artifactId>disputes-api</artifactId>
|
|
<version>0.0.1</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>disputes-api</name>
|
|
<description>disputes api</description>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<java.version>21</java.version>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
<server.port>8022</server.port>
|
|
<management.port>8023</management.port>
|
|
<exposed.ports>${server.port} ${management.port}</exposed.ports>
|
|
<dockerfile.registry>${env.REGISTRY}</dockerfile.registry>
|
|
<springfox-version>2.10.5</springfox-version>
|
|
<woody.version>2.0.1</woody.version>
|
|
<shared-resources.version>3.0.0</shared-resources.version>
|
|
<db.name>disputes</db.name>
|
|
<db.port>5432</db.port>
|
|
<db.url>jdbc:postgresql://localhost:${db.port}/${db.name}</db.url>
|
|
<db.user>postgres</db.user>
|
|
<db.password>postgres</db.password>
|
|
<db.schema>dspt</db.schema>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!--vality-->
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>swag-disputes</artifactId>
|
|
<version>1.16-063c381-server</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>provider-disputes-proto</artifactId>
|
|
<version>1.8-b7ce1ec</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>bouncer-proto</artifactId>
|
|
<version>1.55-ef7403f</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality.geck</groupId>
|
|
<artifactId>serializer</artifactId>
|
|
<version>1.0.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>damsel</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>token-keeper-proto</artifactId>
|
|
<version>1.37-be1f603</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>file-storage-proto</artifactId>
|
|
<version>1.49-f01d2d9</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>db-common-lib</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>msgpack-proto</artifactId>
|
|
<version>1.14-7e44749</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>adapter-flow-lib</artifactId>
|
|
<version>1.0.0</version>
|
|
</dependency>
|
|
|
|
<!--spring-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-cache</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-validator</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.retry</groupId>
|
|
<artifactId>spring-retry</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-web</artifactId>
|
|
<version>6.1.9</version>
|
|
</dependency>
|
|
|
|
<!--third party-->
|
|
<dependency>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-database-postgresql</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.zaxxer</groupId>
|
|
<artifactId>HikariCP</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.postgresql</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.servlet</groupId>
|
|
<artifactId>jakarta.servlet-api</artifactId>
|
|
<version>6.1.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.inject</groupId>
|
|
<artifactId>jakarta.inject-api</artifactId>
|
|
<version>2.0.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>1.6.8</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.springfox</groupId>
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
<version>${springfox-version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.springfox</groupId>
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
<version>${springfox-version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<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>
|
|
<version>0.2.3</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
<artifactId>caffeine</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>2.7</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>31.1-jre</version>
|
|
</dependency>
|
|
|
|
<!--test-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-impl</artifactId>
|
|
<version>0.12.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-api</artifactId>
|
|
<version>0.12.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-jackson</artifactId>
|
|
<version>0.12.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.tomakehurst</groupId>
|
|
<artifactId>wiremock-jre8-standalone</artifactId>
|
|
<version>2.35.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-contract-wiremock</artifactId>
|
|
<version>4.1.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>testcontainers-annotations</artifactId>
|
|
<version>2.0.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
|
|
<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>${project.build.directory}/maven-shared-archive-resources</directory>
|
|
<targetPath>${project.build.directory}</targetPath>
|
|
<includes>
|
|
<include>Dockerfile</include>
|
|
</includes>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
<resource>
|
|
<directory>${project.build.directory}/maven-shared-archive-resources</directory>
|
|
<filtering>true</filtering>
|
|
<excludes>
|
|
<exclude>Dockerfile</exclude>
|
|
</excludes>
|
|
</resource>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-remote-resources-plugin</artifactId>
|
|
<version>3.0.0</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.maven.shared</groupId>
|
|
<artifactId>maven-filtering</artifactId>
|
|
<version>3.3.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<configuration>
|
|
<resourceBundles>
|
|
<resourceBundle>dev.vality:shared-resources:${shared-resources.version}</resourceBundle>
|
|
</resourceBundles>
|
|
<attachToMain>false</attachToMain>
|
|
<attachToTest>false</attachToTest>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>process</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-maven-plugin</artifactId>
|
|
<configuration>
|
|
<url>${db.url}</url>
|
|
<user>${db.user}</user>
|
|
<password>${db.password}</password>
|
|
<schemas>
|
|
<schema>${db.schema}</schema>
|
|
</schemas>
|
|
<locations>
|
|
<location>filesystem:${project.basedir}/src/main/resources/db/migration</location>
|
|
</locations>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>migrate</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>migrate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq-codegen-maven</artifactId>
|
|
<configuration>
|
|
<jdbc>
|
|
<driver>org.postgresql.Driver</driver>
|
|
<url>${db.url}</url>
|
|
<user>${db.user}</user>
|
|
<password>${db.password}</password>
|
|
</jdbc>
|
|
<generator>
|
|
<generate>
|
|
<javaTimeTypes>true</javaTimeTypes>
|
|
<pojos>true</pojos>
|
|
<pojosEqualsAndHashCode>true</pojosEqualsAndHashCode>
|
|
<pojosToString>true</pojosToString>
|
|
</generate>
|
|
<database>
|
|
<name>org.jooq.meta.postgres.PostgresDatabase</name>
|
|
<includes>.*</includes>
|
|
<excludes>schema_version|flyway_schema_history</excludes>
|
|
<inputSchema>${db.schema}</inputSchema>
|
|
</database>
|
|
<target>
|
|
<packageName>dev.vality.disputes.domain</packageName>
|
|
<directory>target/generated-sources/jooq</directory>
|
|
</target>
|
|
</generator>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>gen-src</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>dev.vality.maven.plugins</groupId>
|
|
<artifactId>pg-embedded-plugin</artifactId>
|
|
<version>2.0.0</version>
|
|
<configuration>
|
|
<port>${db.port}</port>
|
|
<dbName>${db.name}</dbName>
|
|
<schemas>
|
|
<schema>${db.schema}</schema>
|
|
</schemas>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>PG_server_start</id>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>start</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>PG_server_stop</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>stop</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|