120 lines
No EOL
3.9 KiB
XML
120 lines
No EOL
3.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<artifactId>z3-shared</artifactId>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<executions>
|
|
|
|
<!-- UNIT TESTS -->
|
|
<execution>
|
|
<configuration>
|
|
<append>true</append>
|
|
<destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
|
|
<propertyName>surefire.jacoco.args</propertyName>
|
|
</configuration>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
<id>pre-unit-test</id>
|
|
</execution>
|
|
|
|
<!-- UNIT TESTS REPORT -->
|
|
<execution>
|
|
<configuration>
|
|
<dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
|
|
<outputDirectory>${project.build.directory}/coverage-jacoco/unit-tests
|
|
</outputDirectory>
|
|
</configuration>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
<id>post-unit-test</id>
|
|
<phase>test</phase>
|
|
</execution>
|
|
|
|
<!-- CHECK UNIT TESTS -->
|
|
<execution>
|
|
<configuration>
|
|
<dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
|
|
<rules>
|
|
<rule>
|
|
<element>BUNDLE</element>
|
|
<limits>
|
|
<limit>
|
|
<counter>LINE</counter>
|
|
<minimum>0.80</minimum>
|
|
<value>COVEREDRATIO</value>
|
|
</limit>
|
|
</limits>
|
|
</rule>
|
|
</rules>
|
|
</configuration>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
<id>jacoco-check-ut</id>
|
|
<phase>verify</phase>
|
|
</execution>
|
|
|
|
</executions>
|
|
<groupId>org.jacoco</groupId>
|
|
<version>${jacoco.version}</version>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<!-- FIX warnings about maybe mockito, maybe removed when bumping quarkus-->
|
|
<argLine>-XX:+EnableDynamicAgentLoading -Xmx1024m -Xshare:off</argLine>
|
|
<argLine>${surefire.jacoco.args} -XX:+EnableDynamicAgentLoading -Xmx1024m -Xshare:off
|
|
</argLine>
|
|
<!-- To remove JBoss Log error on build and testing for all modules-->
|
|
<excludes>
|
|
<exclude>**/*IT.java</exclude>
|
|
</excludes>
|
|
<systemPropertyVariables>
|
|
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
|
<maven.home>${maven.home}</maven.home>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
<version>${surefire-plugin.version}</version>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<artifactId>quarkus-junit5-mockito</artifactId>
|
|
<groupId>io.quarkus</groupId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<artifactId>quarkus-jacoco</artifactId>
|
|
<groupId>io.quarkus</groupId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<artifactId>jakarta.persistence-api</artifactId>
|
|
<groupId>jakarta.persistence</groupId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<artifactId>z3</artifactId>
|
|
<groupId>tech.pegase.z3</groupId>
|
|
<version>1.1.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<maven.compiler.source>22</maven.compiler.source>
|
|
<maven.compiler.target>22</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
</project> |