<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>io.extremum</groupId>
    <artifactId>extremum-bom</artifactId>
    <version>3.0.0</version>
    <relativePath>../extremum-bom</relativePath>
  </parent>
  <groupId>io.extremum</groupId>
  <artifactId>extremum-module-parent</artifactId>
  <version>3.0.0</version>
  <packaging>pom</packaging>
  <name>extremum-common module parent</name>
  <description>This module is used as a parent for any extremum-common module.
        If you are looking for a parent for your application, please use extremum-app-parent.</description>
  <url>https://github.com/smekalka/extremum-common-java</url>
  <inceptionYear>2022</inceptionYear>
  <licenses>
    <license>
      <name>Business Source License 1.1</name>
      <url>https://github.com/smekalka/extremum-common-java/blob/develop/LICENSE.md</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>urgimchak</id>
      <name>Maksim Tyutyaev</name>
      <email>maksim.tyutyaev@smekalka.com</email>
    </developer>
  </developers>
  <scm>
    <connection>scm:https://github.com/smekalka/extremum-common-java.git</connection>
    <developerConnection>scm:git://github.com/smekalka/extremum-common-java.git</developerConnection>
    <url>https://github.com/smekalka/extremum-common-java</url>
  </scm>
  <properties>
    <java.version>1.8</java.version>
    <testcoverage.minimum>0.92</testcoverage.minimum>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.24</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-junit-jupiter</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-core</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.10.1</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
          <showDeprecation>true</showDeprecation>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.1</version>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.1.0</version>
        <configuration>
          <source>${java.version}</source>
          <additionalOptions>
            <additionalOption>-Xdoclint:none</additionalOption>
          </additionalOptions>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>3.0.0-M2</version>
        <executions>
          <execution>
            <id>enforce-ban-duplicate-classes</id>
            <goals>
              <goal>enforce</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>extra-enforcer-rules</artifactId>
            <version>1.2</version>
          </dependency>
        </dependencies>
        <configuration>
          <rules>
            <banDuplicatePomDependencyVersions />
            <bannedDependencies>
              <excludes>
                <exclude>javax.annotation:javax.annotation-api</exclude>
                <exclude>javax.activation:javax.activation-api</exclude>
                <exclude>javax.xml.bind:jaxb-api</exclude>
                <exclude>javax.validation:validation-api</exclude>
                <exclude>org.glassfish:javax.el</exclude>
                <exclude>org.springframework:spring-jcl</exclude>
              </excludes>
            </bannedDependencies>
            <banDuplicateClasses>
              <findAllDuplicates>true</findAllDuplicates>
              <dependencies />
            </banDuplicateClasses>
          </rules>
          <fail>false</fail>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>0.8.8</version>
        <executions>
          <execution>
            <id>jacoco-initialize</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>jacoco-check</id>
            <phase>test</phase>
            <goals>
              <goal>check</goal>
            </goals>
            <configuration>
              <rules>
                <rule>
                  <element>BUNDLE</element>
                </rule>
                <rule>
                  <limits>
                    <limit>
                      <minimum>${testcoverage.minimum}</minimum>
                    </limit>
                  </limits>
                </rule>
              </rules>
            </configuration>
          </execution>
          <execution>
            <id>report</id>
            <phase>test</phase>
            <goals>
              <goal>report</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
