You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
181 lines
6.5 KiB
181 lines
6.5 KiB
<?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/maven-v4_0_0.xsd"> |
|
<modelVersion>4.0.0</modelVersion> |
|
<groupId>ru.egspt</groupId> |
|
<artifactId>moodle-anyreport</artifactId> |
|
<version>0.1</version> |
|
<build> |
|
<plugins> |
|
<plugin> |
|
<artifactId>maven-enforcer-plugin</artifactId> |
|
<version>${maven-enforcer-plugin.version}</version> |
|
<executions> |
|
<execution> |
|
<goals> |
|
<goal>enforce</goal> |
|
</goals> |
|
<configuration> |
|
<rules> |
|
<requireMavenVersion> |
|
<version>3.6.3</version> |
|
</requireMavenVersion> |
|
</rules> |
|
<fail>true</fail> |
|
</configuration> |
|
</execution> |
|
</executions> |
|
</plugin> |
|
<plugin> |
|
<artifactId>maven-surefire-plugin</artifactId> |
|
<version>${maven-surefire-plugin.version}</version> |
|
</plugin> |
|
<plugin> |
|
<groupId>org.jacoco</groupId> |
|
<artifactId>jacoco-maven-plugin</artifactId> |
|
<version>${jacoco-maven-plugin.version}</version> |
|
<executions> |
|
<execution> |
|
<id>pre-unit-test</id> |
|
<goals> |
|
<goal>prepare-agent</goal> |
|
</goals> |
|
</execution> |
|
<execution> |
|
<id>post-unit-test</id> |
|
<phase>test</phase> |
|
<goals> |
|
<goal>report</goal> |
|
</goals> |
|
</execution> |
|
<execution> |
|
<id>check-unit-test</id> |
|
<phase>test</phase> |
|
<goals> |
|
<goal>check</goal> |
|
</goals> |
|
<configuration> |
|
<dataFile>${project.build.directory}/jacoco.exec</dataFile> |
|
<rules> |
|
<rule> |
|
<element>BUNDLE</element> |
|
<limits> |
|
<limit> |
|
<counter>INSTRUCTION</counter> |
|
<value>COVEREDRATIO</value> |
|
<minimum>${jacoco.unit-tests.limit.instruction-ratio}</minimum> |
|
</limit> |
|
<limit> |
|
<counter>BRANCH</counter> |
|
<value>COVEREDRATIO</value> |
|
<minimum>${jacoco.unit-tests.limit.branch-ratio}</minimum> |
|
</limit> |
|
</limits> |
|
</rule> |
|
<rule> |
|
<element>CLASS</element> |
|
<limits> |
|
<limit> |
|
<counter>COMPLEXITY</counter> |
|
<value>TOTALCOUNT</value> |
|
<maximum>${jacoco.unit-tests.limit.class-complexity}</maximum> |
|
</limit> |
|
</limits> |
|
</rule> |
|
<rule> |
|
<element>METHOD</element> |
|
<limits> |
|
<limit> |
|
<counter>COMPLEXITY</counter> |
|
<value>TOTALCOUNT</value> |
|
<maximum>${jacoco.unit-tests.limit.method-complexity}</maximum> |
|
</limit> |
|
</limits> |
|
</rule> |
|
</rules> |
|
</configuration> |
|
</execution> |
|
</executions> |
|
</plugin> |
|
<plugin> |
|
<artifactId>maven-shade-plugin</artifactId> |
|
<executions> |
|
<execution> |
|
<goals> |
|
<goal>shade</goal> |
|
</goals> |
|
<configuration> |
|
<shadedArtifactAttached>true</shadedArtifactAttached> |
|
<transformers> |
|
<transformer> |
|
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass> |
|
</transformer> |
|
</transformers> |
|
</configuration> |
|
</execution> |
|
</executions> |
|
</plugin> |
|
</plugins> |
|
</build> |
|
<dependencies> |
|
<dependency> |
|
<groupId>org.junit.jupiter</groupId> |
|
<artifactId>junit-jupiter-api</artifactId> |
|
<version>5.6.0</version> |
|
<scope>test</scope> |
|
<exclusions> |
|
<exclusion> |
|
<artifactId>apiguardian-api</artifactId> |
|
<groupId>org.apiguardian</groupId> |
|
</exclusion> |
|
<exclusion> |
|
<artifactId>opentest4j</artifactId> |
|
<groupId>org.opentest4j</groupId> |
|
</exclusion> |
|
<exclusion> |
|
<artifactId>junit-platform-commons</artifactId> |
|
<groupId>org.junit.platform</groupId> |
|
</exclusion> |
|
</exclusions> |
|
</dependency> |
|
<dependency> |
|
<groupId>org.junit.jupiter</groupId> |
|
<artifactId>junit-jupiter-engine</artifactId> |
|
<version>5.6.0</version> |
|
<scope>test</scope> |
|
<exclusions> |
|
<exclusion> |
|
<artifactId>junit-platform-engine</artifactId> |
|
<groupId>org.junit.platform</groupId> |
|
</exclusion> |
|
<exclusion> |
|
<artifactId>apiguardian-api</artifactId> |
|
<groupId>org.apiguardian</groupId> |
|
</exclusion> |
|
</exclusions> |
|
</dependency> |
|
</dependencies> |
|
<reporting> |
|
<plugins> |
|
<plugin> |
|
<artifactId>maven-javadoc-plugin</artifactId> |
|
<version>${maven-javadoc-plugin.version}</version> |
|
</plugin> |
|
</plugins> |
|
</reporting> |
|
<properties> |
|
<jacoco.unit-tests.limit.method-complexity>5</jacoco.unit-tests.limit.method-complexity> |
|
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version> |
|
<junit.version>5.6.0</junit.version> |
|
<checkstyle.version>8.39</checkstyle.version> |
|
<jacoco.unit-tests.limit.branch-ratio>0%</jacoco.unit-tests.limit.branch-ratio> |
|
<jacoco-maven-plugin.version>0.8.4</jacoco-maven-plugin.version> |
|
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version> |
|
<maven.compiler.target>1.8</maven.compiler.target> |
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
<maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version> |
|
<maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version> |
|
<jacoco.unit-tests.limit.instruction-ratio>0%</jacoco.unit-tests.limit.instruction-ratio> |
|
<maven.compiler.source>1.8</maven.compiler.source> |
|
<jacoco.unit-tests.limit.class-complexity>20</jacoco.unit-tests.limit.class-complexity> |
|
</properties> |
|
</project>
|
|
|