344 lines
14 KiB
XML
344 lines
14 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>3.2.2</version>
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
</parent>
|
|
<groupId>com.millicom.microservice</groupId>
|
|
<artifactId>numerotemporal-service-api</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-tracing-bom</artifactId>
|
|
<version>${micrometer-tracing.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
<properties>
|
|
<java.version>21</java.version>
|
|
|
|
<!-- SONAR Properties -->
|
|
<project.testresult.directory>${project.build.directory}/test-results</project.testresult.directory>
|
|
<properties-maven-plugin.version>1.1.0</properties-maven-plugin.version>
|
|
<jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>
|
|
<junit.itReportFolder>${project.testresult.directory}/integrationTest</junit.itReportFolder>
|
|
<sonar.qualitygate.wait>true</sonar.qualitygate.wait>
|
|
|
|
<!-- RIT Library versions -->
|
|
<rit.library.common-interfaces.version>2.0.4</rit.library.common-interfaces.version>
|
|
<rit.library.logging.version>2.0.4</rit.library.logging.version>
|
|
<rit.library.messaging.version>2.0.3</rit.library.messaging.version>
|
|
<rit.library.eventprocessingclient.version>2.0.1</rit.library.eventprocessingclient.version>
|
|
|
|
<rit.library.messaging.configuration.version>1.0.0</rit.library.messaging.configuration.version>
|
|
|
|
|
|
<!-- This is used for liquibase name -->
|
|
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>21</maven.compiler.source>
|
|
<maven.compiler.target>21</maven.compiler.target>
|
|
</properties>
|
|
|
|
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>nexus</id>
|
|
<url>http://10.0.0.126:8084/repository/maven-public/</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-milestones</id>
|
|
<url>https://repo.spring.io/milestone</url>
|
|
</repository>
|
|
<repository>
|
|
<id>millicom-nexus-mirror</id>
|
|
<url>http://3.208.115.4:30081/repository/maven-public</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>nexus</id>
|
|
<url>http://10.0.0.126:8084/repository/maven-public/</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springdoc</groupId>
|
|
<artifactId>springdoc-openapi-ui</artifactId>
|
|
<version>1.6.9</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.wiremock</groupId>
|
|
<artifactId>wiremock-standalone</artifactId>
|
|
<version>3.4.2</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-sleuth</artifactId>
|
|
<version>3.1.11</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-sleuth-brave</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-sleuth-otel-autoconfigure</artifactId>
|
|
<version>1.1.0-M6</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.opentelemetry</groupId>
|
|
<artifactId>opentelemetry-exporter-otlp-trace</artifactId>
|
|
<version>1.14.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger.core.v3</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>2.2.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.kafka</groupId>
|
|
<artifactId>spring-kafka-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-observation</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-tracing</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-tracing-bridge-otel</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-simple</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web-services</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<!-- KAFKA LIBRERIA TRACERT-->
|
|
<dependency>
|
|
<groupId>com.readinessit.library</groupId>
|
|
<artifactId>common-interfaces</artifactId>
|
|
<version>${rit.library.common-interfaces.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.readinessit.library</groupId>
|
|
<artifactId>logging</artifactId>
|
|
<version>${rit.library.logging.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.readinessit.library</groupId>
|
|
<artifactId>messaging</artifactId>
|
|
<version>${rit.library.messaging.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.readinessit.library</groupId>
|
|
<artifactId>event-processing-client</artifactId>
|
|
<version>${rit.library.eventprocessingclient.version}</version>
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<verbose>true</verbose>
|
|
|
|
<buildArgs>
|
|
<arg>
|
|
ch.qos.logback.core.util.Loader,ch.qos.logback.classic.Logger,ch.qos.logback.core.status.StatusBase,com.ctc.wstx.stax.WstxInputFactory,ch.qos.logback.core.util.StatusPrinter,com.ctc.wstx.util.DefaultXmlSymbolTable,com.ctc.wstx.api.CommonConfig,ch.qos.logback.core.status.InfoStatus,ch.qos.logback.classic.Level,com.ctc.wstx.api.ReaderConfig,ch.qos.logback.core.CoreConstants,org.slf4j.LoggerFactory
|
|
</arg>
|
|
</buildArgs>
|
|
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>native-image-build</id>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<environment>
|
|
<GRAALVM_NATIVE_IMAGE_OPTIONS>
|
|
--initialize-at-build-time=com.ctc.wstx.stax.WstxInputFactory
|
|
</GRAALVM_NATIVE_IMAGE_OPTIONS>
|
|
</environment>
|
|
<commandLine>
|
|
</commandLine>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<image>
|
|
<env>
|
|
<BP_JVM_VERSION>${java.version}</BP_JVM_VERSION>
|
|
<GRAALVM_NATIVE_IMAGE_OPTIONS>
|
|
--initialize-at-build-time=com.ctc.wstx.stax.WstxInputFactory
|
|
</GRAALVM_NATIVE_IMAGE_OPTIONS>
|
|
</env>
|
|
</image>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>properties-maven-plugin</artifactId>
|
|
<version>${properties-maven-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>read-project-properties</goal>
|
|
</goals>
|
|
<configuration>
|
|
<files>
|
|
<file>sonar-project.properties</file>
|
|
</files>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>${jacoco-maven-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>prepare-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>report</id>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>post-unit-test</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!-- Sets the path to the file which contains the execution data. -->
|
|
<dataFile>target/jacoco.exec</dataFile>
|
|
<!-- Sets the output directory for the code coverage report. -->
|
|
<outputDirectory>${junit.itReportFolder}</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.liquibase</groupId>
|
|
<artifactId>liquibase-maven-plugin</artifactId>
|
|
<configuration>
|
|
<propertyFile>src/main/resources/liquibase.properties</propertyFile>
|
|
<outputChangeLogFile>
|
|
${project.basedir}/src/main/resources/db/changelog/${maven.build.timestamp}_changelog.xml
|
|
</outputChangeLogFile>
|
|
<diffChangeLogFile>
|
|
${project.basedir}/src/main/resources/db/changelog/structure/${maven.build.timestamp}_entity_update.xml
|
|
</diffChangeLogFile>
|
|
<verbose>true</verbose>
|
|
<contexts>!test</contexts>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.liquibase.ext</groupId>
|
|
<artifactId>liquibase-hibernate5</artifactId>
|
|
<version>4.15.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
<version>2.7.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.validation</groupId>
|
|
<artifactId>validation-api</artifactId>
|
|
<version>2.0.1.Final</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-beans</artifactId>
|
|
<version>5.3.22</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-simple</artifactId>
|
|
<version>2.0.11</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |