177 lines
6.8 KiB
XML
177 lines
6.8 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.4.2</version>
|
||
|
|
<relativePath/>
|
||
|
|
</parent>
|
||
|
|
|
||
|
|
<groupId>me.belkacemi</groupId>
|
||
|
|
<artifactId>iot-alarm-system</artifactId>
|
||
|
|
<version>1.0.0</version>
|
||
|
|
<name>iot-alarm-system</name>
|
||
|
|
<description>Systeme de video-surveillance evenementiel - Hexagonal / CQRS / Kafka</description>
|
||
|
|
|
||
|
|
<properties>
|
||
|
|
<java.version>21</java.version>
|
||
|
|
<archunit.version>1.3.0</archunit.version>
|
||
|
|
<springdoc.version>2.8.3</springdoc.version>
|
||
|
|
</properties>
|
||
|
|
|
||
|
|
<dependencies>
|
||
|
|
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<!-- PRESENTATION : adapters entrants (REST + WebSocket STOMP) -->
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.boot</groupId>
|
||
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.boot</groupId>
|
||
|
|
<artifactId>spring-boot-starter-websocket</artifactId>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.boot</groupId>
|
||
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springdoc</groupId>
|
||
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||
|
|
<version>${springdoc.version}</version>
|
||
|
|
</dependency>
|
||
|
|
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<!-- INFRASTRUCTURE : bus d'evenements Kafka -->
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.kafka</groupId>
|
||
|
|
<artifactId>spring-kafka</artifactId>
|
||
|
|
</dependency>
|
||
|
|
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<!-- INFRASTRUCTURE : persistance (write model + read model) -->
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.boot</groupId>
|
||
|
|
<artifactId>spring-boot-starter-data-jpa</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.postgresql</groupId>
|
||
|
|
<artifactId>postgresql</artifactId>
|
||
|
|
<scope>runtime</scope>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>com.h2database</groupId>
|
||
|
|
<artifactId>h2</artifactId>
|
||
|
|
<scope>runtime</scope>
|
||
|
|
</dependency>
|
||
|
|
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<!-- OPERABILITE : health checks, metriques Prometheus -->
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.boot</groupId>
|
||
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>io.micrometer</groupId>
|
||
|
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
||
|
|
<scope>runtime</scope>
|
||
|
|
</dependency>
|
||
|
|
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<!-- TESTS -->
|
||
|
|
<!-- ========================================================= -->
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.boot</groupId>
|
||
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
||
|
|
<scope>test</scope>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.kafka</groupId>
|
||
|
|
<artifactId>spring-kafka-test</artifactId>
|
||
|
|
<scope>test</scope>
|
||
|
|
</dependency>
|
||
|
|
<!-- ArchUnit : les regles d'architecture hexagonale sont testees, pas documentees -->
|
||
|
|
<dependency>
|
||
|
|
<groupId>com.tngtech.archunit</groupId>
|
||
|
|
<artifactId>archunit-junit5</artifactId>
|
||
|
|
<version>${archunit.version}</version>
|
||
|
|
<scope>test</scope>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.testcontainers</groupId>
|
||
|
|
<artifactId>junit-jupiter</artifactId>
|
||
|
|
<scope>test</scope>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.testcontainers</groupId>
|
||
|
|
<artifactId>kafka</artifactId>
|
||
|
|
<scope>test</scope>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.testcontainers</groupId>
|
||
|
|
<artifactId>postgresql</artifactId>
|
||
|
|
<scope>test</scope>
|
||
|
|
</dependency>
|
||
|
|
</dependencies>
|
||
|
|
|
||
|
|
<build>
|
||
|
|
<plugins>
|
||
|
|
<plugin>
|
||
|
|
<groupId>org.springframework.boot</groupId>
|
||
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
|
|
<configuration>
|
||
|
|
<excludes>
|
||
|
|
<exclude>
|
||
|
|
<groupId>org.projectlombok</groupId>
|
||
|
|
<artifactId>lombok</artifactId>
|
||
|
|
</exclude>
|
||
|
|
</excludes>
|
||
|
|
</configuration>
|
||
|
|
</plugin>
|
||
|
|
|
||
|
|
<!-- Tests unitaires + ArchUnit : tournent a chaque build (y compris dans Docker) -->
|
||
|
|
<plugin>
|
||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
||
|
|
<configuration>
|
||
|
|
<excludedGroups>integration</excludedGroups>
|
||
|
|
</configuration>
|
||
|
|
</plugin>
|
||
|
|
|
||
|
|
<!-- Tests d'integration Testcontainers : mvn verify -Pintegration (Docker requis) -->
|
||
|
|
<plugin>
|
||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
||
|
|
<configuration>
|
||
|
|
<groups>integration</groups>
|
||
|
|
</configuration>
|
||
|
|
<executions>
|
||
|
|
<execution>
|
||
|
|
<goals>
|
||
|
|
<goal>integration-test</goal>
|
||
|
|
<goal>verify</goal>
|
||
|
|
</goals>
|
||
|
|
</execution>
|
||
|
|
</executions>
|
||
|
|
</plugin>
|
||
|
|
</plugins>
|
||
|
|
</build>
|
||
|
|
|
||
|
|
</project>
|