2021-03-25 18:24:56 +13:00
|
|
|
<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>
|
2021-06-07 21:25:01 +12:00
|
|
|
<groupId>nz.ac.massey.javaecs</groupId>
|
2021-03-25 18:24:56 +13:00
|
|
|
<artifactId>javaecs</artifactId>
|
2021-06-09 12:51:50 +12:00
|
|
|
<version>0.9.2-PRERELEASE</version>
|
2021-03-25 18:24:56 +13:00
|
|
|
<properties>
|
|
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<junit.version>5.6.0</junit.version>
|
|
|
|
<maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
|
|
|
|
<maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
|
|
|
|
<checkstyle.version>8.29</checkstyle.version>
|
|
|
|
<checkstyle-rules.version>4.0.1</checkstyle-rules.version>
|
|
|
|
<maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
|
|
|
|
<jacoco-maven-plugin.version>0.8.4</jacoco-maven-plugin.version>
|
|
|
|
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
|
|
|
|
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
|
|
|
|
<!-- JaCoCo thresholds. Increase gradually as you add tests. -->
|
2021-06-08 17:08:57 +12:00
|
|
|
<jacoco.unit-tests.limit.instruction-ratio>75%</jacoco.unit-tests.limit.instruction-ratio>
|
|
|
|
<jacoco.unit-tests.limit.branch-ratio>50%</jacoco.unit-tests.limit.branch-ratio>
|
|
|
|
<jacoco.unit-tests.limit.class-complexity>30</jacoco.unit-tests.limit.class-complexity>
|
|
|
|
<jacoco.unit-tests.limit.method-complexity>10</jacoco.unit-tests.limit.method-complexity>
|
2021-03-25 18:24:56 +13:00
|
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
|
|
<version>${junit.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
|
|
<version>${junit.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2021-06-07 18:00:39 +12:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<version>3.1.1</version>
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
<descriptorRefs>
|
|
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
|
</descriptorRefs>
|
|
|
|
</configuration>
|
|
|
|
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>make-assembly</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
|
|
|
|
</plugin>
|
2021-03-25 18:24:56 +13:00
|
|
|
<plugin>
|
2021-06-09 12:25:22 +12:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-javadocs</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2021-03-25 18:24:56 +13:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<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>
|
2021-06-07 18:00:39 +12:00
|
|
|
<!-- <plugin>
|
2021-03-25 18:24:56 +13:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
|
|
<version>${maven-checkstyle-plugin.version}</version>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.puppycrawl.tools</groupId>
|
|
|
|
<artifactId>checkstyle</artifactId>
|
|
|
|
<version>${checkstyle.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.ngeor</groupId>
|
|
|
|
<artifactId>checkstyle-rules</artifactId>
|
|
|
|
<version>${checkstyle-rules.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<configuration>
|
|
|
|
<configLocation>com/github/ngeor/checkstyle.xml</configLocation>
|
|
|
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
|
|
|
<skip>${skipTests}</skip>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>checkstyle</id>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2021-06-07 18:00:39 +12:00
|
|
|
</plugin> -->
|
2021-03-25 18:24:56 +13:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<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>
|
2021-06-08 17:08:57 +12:00
|
|
|
<execution>
|
2021-03-25 18:24:56 +13:00
|
|
|
<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>
|
2021-06-08 17:08:57 +12:00
|
|
|
</execution>
|
2021-03-25 18:24:56 +13:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<reporting>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<version>${maven-javadoc-plugin.version}</version>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</reporting>
|
|
|
|
<profiles>
|
|
|
|
<!-- Publish coverage report to Coveralls, only when running in Travis. -->
|
|
|
|
<profile>
|
|
|
|
<id>travis</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>env.TRAVIS</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.eluder.coveralls</groupId>
|
|
|
|
<artifactId>coveralls-maven-plugin</artifactId>
|
|
|
|
<version>${coveralls-maven-plugin.version}</version>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|