mirror of
https://github.com/valitydev/liminator.git
synced 2024-11-06 01:15:21 +00:00
405 lines
15 KiB
XML
405 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>
|
|
<relativePath/>
|
|
</parent>
|
|
|
|
<artifactId>liminator</artifactId>
|
|
<version>1.0.1</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>liminator</name>
|
|
<description>Support service for limiter</description>
|
|
|
|
<properties>
|
|
<dockerfile.registry>${env.REGISTRY}</dockerfile.registry>
|
|
<server.port>8022</server.port>
|
|
<management.port>8023</management.port>
|
|
<exposed.ports>${server.port} ${management.port}</exposed.ports>
|
|
<db.url>jdbc:postgresql://localhost:5432/liminator</db.url>
|
|
<db.user>postgres</db.user>
|
|
<db.password>postgres</db.password>
|
|
<db.name>liminator</db.name>
|
|
<db.schema>lim</db.schema>
|
|
<local.pg.url>jdbc:postgresql://localhost:5432/liminator</local.pg.url>
|
|
<local.pg.port>5432</local.pg.port>
|
|
<checkstyle.config.suppressions.path>./src/main/resources/checkstyle/checkstyle-suppressions.xml
|
|
</checkstyle.config.suppressions.path>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!--spring -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-validator</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.kafka</groupId>
|
|
<artifactId>spring-kafka</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-actuator</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-jooq</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-web</artifactId>
|
|
<version>6.1.6</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-webmvc</artifactId>
|
|
<version>6.1.6</version>
|
|
</dependency>
|
|
|
|
<!--Thrirdparty libs-->
|
|
<dependency>
|
|
<groupId>jakarta.servlet</groupId>
|
|
<artifactId>jakarta.servlet-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.postgresql</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.zaxxer</groupId>
|
|
<artifactId>HikariCP</artifactId>
|
|
</dependency>
|
|
<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>
|
|
<version>3.19.11</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.logstash.logback</groupId>
|
|
<artifactId>logstash-logback-encoder</artifactId>
|
|
<version>7.4</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
<artifactId>caffeine</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.javacrumbs.shedlock</groupId>
|
|
<artifactId>shedlock-provider-jdbc-template</artifactId>
|
|
<version>4.46.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.javacrumbs.shedlock</groupId>
|
|
<artifactId>shedlock-spring</artifactId>
|
|
<version>4.46.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
<version>2.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>software.amazon.msk</groupId>
|
|
<artifactId>aws-msk-iam-auth</artifactId>
|
|
<version>2.0.3</version>
|
|
</dependency>
|
|
|
|
<!--dev.vality-->
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>db-common-lib</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>liminator-proto</artifactId>
|
|
<version>1.7-3870a39</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality.woody</groupId>
|
|
<artifactId>woody-thrift</artifactId>
|
|
<version>${woody.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>limiter-proto</artifactId>
|
|
<version>1.41-2483f60</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>shared-resources</artifactId>
|
|
<version>${shared-resources.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality.geck</groupId>
|
|
<artifactId>serializer</artifactId>
|
|
<version>1.0.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality.geck</groupId>
|
|
<artifactId>filter</artifactId>
|
|
<version>1.0.1</version>
|
|
</dependency>
|
|
|
|
<!-- Test -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>dev.vality</groupId>
|
|
<artifactId>testcontainers-annotations</artifactId>
|
|
<version>2.0.4</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.awaitility</groupId>
|
|
<artifactId>awaitility</artifactId>
|
|
<version>4.2.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.zonky.test</groupId>
|
|
<artifactId>embedded-postgres</artifactId>
|
|
<version>2.0.7</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.zonky.test.postgres</groupId>
|
|
<artifactId>embedded-postgres-binaries-darwin-amd64</artifactId>
|
|
<version>16.2.0</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<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>dev.vality.maven.plugins</groupId>
|
|
<artifactId>pg-embedded-plugin</artifactId>
|
|
<version>2.0.0</version>
|
|
<configuration>
|
|
<port>${local.pg.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>generate-resources</phase>
|
|
<goals>
|
|
<goal>stop</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-maven-plugin</artifactId>
|
|
<configuration>
|
|
<url>${local.pg.url}</url>
|
|
<user>${db.user}</user>
|
|
<password>${db.password}</password>
|
|
<schemas>
|
|
<schema>${db.schema}</schema>
|
|
</schemas>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>migrate</id>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>migrate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.postgresql</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
<version>42.7.3</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq-codegen-maven</artifactId>
|
|
<configuration>
|
|
<jdbc>
|
|
<driver>org.postgresql.Driver</driver>
|
|
<url>${local.pg.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|.*func
|
|
</excludes>
|
|
<inputSchema>${db.schema}</inputSchema>
|
|
</database>
|
|
<target>
|
|
<packageName>com.empayre.liminator.domain</packageName>
|
|
<directory>target/generated-sources/</directory>
|
|
</target>
|
|
</generator>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>gen-src</id>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<argLine>-Dfile.encoding=UTF-8</argLine>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-remote-resources-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.maven.shared</groupId>
|
|
<artifactId>maven-filtering</artifactId>
|
|
<version>3.3.1</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.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<configuration>
|
|
<nonFilteredFileExtensions>
|
|
<nonFilteredFileExtension>p12</nonFilteredFileExtension>
|
|
</nonFilteredFileExtensions>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|