<?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">
  <parent>
    <artifactId>oss-parent</artifactId>
    <groupId>org.sonatype.oss</groupId>
    <version>9</version>
    <relativePath>../pom.xml/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>nl.jqno.equalsverifier</groupId>
  <artifactId>equalsverifier</artifactId>
  <name>EqualsVerifier</name>
  <version>3.5.2</version>
  <description>EqualsVerifier can be used in JUnit unit tests to verify whether the contract for the equals and hashCode methods is met.</description>
  <url>http://www.jqno.nl/equalsverifier</url>
  <issueManagement>
    <url>https://github.com/jqno/equalsverifier/issues</url>
  </issueManagement>
  <ciManagement>
    <system>Circle CI</system>
    <url>https://circleci.com/gh/jqno/equalsverifier</url>
  </ciManagement>
  <mailingLists>
    <mailingList>
      <name>General Discussion</name>
      <archive>http://groups.google.com/group/equalsverifier</archive>
    </mailingList>
  </mailingLists>
  <developers>
    <developer>
      <id>Jan</id>
      <name>Jan Ouwens</name>
      <email>jan.ouwens@gmail.com</email>
      <url>http://www.jqno.nl</url>
      <timezone>Central European Time</timezone>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:https://github.com/jqno/equalsverifier</connection>
    <developerConnection>scm:git:https://github.com/jqno/equalsverifier</developerConnection>
    <url>http://github.com/jqno/equalsverifier</url>
  </scm>
  <build>
    <defaultGoal>clean prettier:write verify</defaultGoal>
    <plugins>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>3.0.0-M3</version>
        <executions>
          <execution>
            <id>enforce-maven</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireMavenVersion>
                  <version>3.3.9</version>
                </requireMavenVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>${maven-compiler-plugin.version}</version>
        <configuration>
          <source>${java.release}</source>
          <target>${java.release}</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.2.0</version>
        <configuration>
          <source>1.8</source>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.2</version>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.2.0</version>
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
            <manifestEntries>
              <Automatic-Module-Name>nl.jqno.equalsverifier</Automatic-Module-Name>
              <Website>${project.url}</Website>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.4</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <minimizeJar>true</minimizeJar>
              <artifactSet>
                <includes>
                  <artifact>net.bytebuddy:byte-buddy</artifact>
                  <artifact>org.objenesis:objenesis</artifact>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>net.bytebuddy</pattern>
                  <shadedPattern>nl.jqno.equalsverifier.internal.lib.bytebuddy</shadedPattern>
                  <excludes>
                    <exclude>net/bytebuddy/experimental</exclude>
                  </excludes>
                </relocation>
                <relocation>
                  <pattern>org.objenesis</pattern>
                  <shadedPattern>nl.jqno.equalsverifier.internal.lib.objenesis</shadedPattern>
                </relocation>
              </relocations>
              <filters>
                <filter>
                  <artifact>net.bytebuddy:*</artifact>
                  <excludes>
                    <exclude>META-INF/**</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>org.objenesis:*</artifact>
                  <excludes>
                    <exclude>META-INF/**</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>adds-module-checks-and-linting-for-java9-and-up</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>${maven-compiler-plugin.version}</version>
            <configuration>
              <release>${java.release}</release>
              <showWarnings>true</showWarnings>
              <compilerArgs>
                <arg>-Werror</arg>
                <arg>-Xlint:deprecation,removal,rawtypes,unchecked</arg>
              </compilerArgs>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <argLine>@{surefire.argLine}</argLine>
              <useSystemClassLoader>false</useSystemClassLoader>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <surefire.argLine>--illegal-access=deny ${additional.argLine}</surefire.argLine>
      </properties>
    </profile>
    <profile>
      <id>enables-javafx-tests-for-jdk11-and-up</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>3.2.0</version>
            <executions>
              <execution>
                <phase>generate-sources</phase>
                <goals>
                  <goal>add-test-source</goal>
                </goals>
                <configuration>
                  <sources>
                    <source>src/test/java11</source>
                  </sources>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <dependencies>
        <dependency>
          <groupId>org.openjfx</groupId>
          <artifactId>javafx-base</artifactId>
          <version>15.0.1</version>
          <scope>provided</scope>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>enables-records-tests-for-jdk16-and-up</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>${maven-compiler-plugin.version}</version>
            <configuration>
              <testRelease>16</testRelease>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>${build-helper-maven-plugin.version}</version>
            <executions>
              <execution>
                <phase>generate-sources</phase>
                <goals>
                  <goal>add-test-source</goal>
                </goals>
                <configuration>
                  <sources>
                    <source>src/test/java11</source>
                    <source>src/test/java16</source>
                  </sources>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <properties>
        <coverage.threshold>0.97</coverage.threshold>
      </properties>
    </profile>
    <profile>
      <id>static-analysis</id>
      <build>
        <plugins>
          <plugin>
            <groupId>com.diffplug.spotless</groupId>
            <artifactId>spotless-maven-plugin</artifactId>
            <version>2.7.0</version>
            <executions>
              <execution>
                <goals>
                  <goal>check</goal>
                </goals>
                <configuration>
                  <formats>
                    <format>
                      <includes>
                        <include>src/*/java/**/*.java</include>
                        <include>src/test/java11/**/*.java</include>
                      </includes>
                      <prettier>
                        <devDependencies>
                          <prettier>2.2.0</prettier>
                          <prettier-plugin-java>0.8.3</prettier-plugin-java>
                        </devDependencies>
                        <config>
                          <tabWidth>4</tabWidth>
                          <printWidth>100</printWidth>
                          <trailingComma>none</trailingComma>
                        </config>
                      </prettier>
                    </format>
                  </formats>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <formats>
                <format>
                  <includes>
                    <include>src/*/java/**/*.java</include>
                    <include>src/test/java11/**/*.java</include>
                  </includes>
                  <prettier>
                    <devDependencies>
                      <prettier>2.2.0</prettier>
                      <prettier-plugin-java>0.8.3</prettier-plugin-java>
                    </devDependencies>
                    <config>
                      <tabWidth>4</tabWidth>
                      <printWidth>100</printWidth>
                      <trailingComma>none</trailingComma>
                    </config>
                  </prettier>
                </format>
              </formats>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
            <version>0.8.6</version>
            <executions>
              <execution>
                <id>default-prepare-agent</id>
                <goals>
                  <goal>prepare-agent</goal>
                </goals>
                <configuration>
                  <propertyName>surefire.argLine</propertyName>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>3.0.0</version>
            <executions>
              <execution>
                <id>run-jacoco</id>
                <phase>verify</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target>
                    <taskdef />
                    <report>
                      <executiondata>
                        <file />
                      </executiondata>
                      <structure>
                        <classfiles>
                          <fileset />
                        </classfiles>
                        <sourcefiles>
                          <fileset />
                        </sourcefiles>
                      </structure>
                      <check>
                        <rule>
                          <limit />
                        </rule>
                      </check>
                      <html />
                    </report>
                    <report>
                      <executiondata>
                        <file />
                      </executiondata>
                      <structure>
                        <classfiles>
                          <fileset />
                        </classfiles>
                        <sourcefiles>
                          <fileset />
                        </sourcefiles>
                      </structure>
                      <check>
                        <rule>
                          <limit />
                        </rule>
                      </check>
                      <html />
                    </report>
                  </target>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>org.jacoco</groupId>
                <artifactId>org.jacoco.ant</artifactId>
                <version>0.8.6</version>
                <scope>compile</scope>
              </dependency>
            </dependencies>
          </plugin>
          <plugin>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <version>3.1.1</version>
            <executions>
              <execution>
                <id>run-checkstyle</id>
                <phase>verify</phase>
                <goals>
                  <goal>check</goal>
                </goals>
                <configuration>
                  <failsOnError>true</failsOnError>
                  <configLocation>project/checkstyle-config.xml</configLocation>
                  <includeTestSourceDirectory>true</includeTestSourceDirectory>
                  <encoding>UTF-8</encoding>
                  <linkXRef>false</linkXRef>
                  <consoleOutput>true</consoleOutput>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>com.puppycrawl.tools</groupId>
                <artifactId>checkstyle</artifactId>
                <version>8.39</version>
                <scope>compile</scope>
              </dependency>
            </dependencies>
            <configuration>
              <configLocation>project/checkstyle-config.xml</configLocation>
              <includeTestSourceDirectory>true</includeTestSourceDirectory>
              <encoding>UTF-8</encoding>
              <linkXRef>false</linkXRef>
              <consoleOutput>true</consoleOutput>
            </configuration>
          </plugin>
          <plugin>
            <groupId>com.github.spotbugs</groupId>
            <artifactId>spotbugs-maven-plugin</artifactId>
            <version>4.2.0</version>
            <executions>
              <execution>
                <id>run-spotbugs</id>
                <phase>verify</phase>
                <goals>
                  <goal>check</goal>
                </goals>
                <configuration>
                  <effort>Max</effort>
                  <threshold>Low</threshold>
                  <xmlOutput>true</xmlOutput>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>com.github.spotbugs</groupId>
                <artifactId>spotbugs</artifactId>
                <version>4.2.0</version>
                <scope>compile</scope>
              </dependency>
            </dependencies>
            <configuration>
              <effort>Max</effort>
              <threshold>Low</threshold>
              <xmlOutput>true</xmlOutput>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.pitest</groupId>
            <artifactId>pitest-maven</artifactId>
            <version>1.6.2</version>
            <configuration>
              <jvmArgs>
                <jvmArg />
              </jvmArgs>
              <threads>3</threads>
              <targetClasses>
                <param>nl.jqno.equalsverifier.*</param>
              </targetClasses>
              <targetTests>
                <param>nl.jqno.equalsverifier.*</param>
              </targetTests>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <reporting>
        <plugins>
          <plugin>
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
            <version>0.8.6</version>
          </plugin>
          <plugin>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <version>3.1.1</version>
            <configuration>
              <configLocation>project/checkstyle-config.xml</configLocation>
              <includeTestSourceDirectory>true</includeTestSourceDirectory>
              <encoding>UTF-8</encoding>
              <linkXRef>false</linkXRef>
            </configuration>
            <reportSets>
              <reportSet>
                <configuration>
                  <configLocation>project/checkstyle-config.xml</configLocation>
                  <includeTestSourceDirectory>true</includeTestSourceDirectory>
                  <encoding>UTF-8</encoding>
                  <linkXRef>false</linkXRef>
                </configuration>
                <reports>
                  <report>checkstyle</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>
          <plugin>
            <groupId>com.github.spotbugs</groupId>
            <artifactId>spotbugs-maven-plugin</artifactId>
            <version>4.2.0</version>
            <configuration>
              <effort>Max</effort>
              <threshold>Low</threshold>
            </configuration>
          </plugin>
        </plugins>
      </reporting>
    </profile>
    <profile>
      <id>EXPERIMENTAL-for-EA-versions</id>
      <properties>
        <surefire.argLine>--illegal-access=deny -Dnet.bytebuddy.experimental=true</surefire.argLine>
      </properties>
    </profile>
  </profiles>
  <repositories>
    <repository>
      <id>repo-for-signedjar-dependency</id>
      <url>file://${basedir}/lib</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>com.github.spotbugs</groupId>
      <artifactId>spotbugs-annotations</artifactId>
      <version>4.2.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>net.jcip</groupId>
      <artifactId>jcip-annotations</artifactId>
      <version>1.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>5.7.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-jupiter-api</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-params</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-engine</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest</artifactId>
      <version>2.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
      <version>3.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>javax.annotation</groupId>
      <artifactId>javax.annotation-api</artifactId>
      <version>1.3.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>nl.jqno.equalsverifier</groupId>
      <artifactId>equalsverifier-signedjar-test</artifactId>
      <version>0.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.eclipse.jdt</groupId>
      <artifactId>org.eclipse.jdt.annotation</artifactId>
      <version>2.2.600</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.tngtech.archunit</groupId>
      <artifactId>archunit-junit5</artifactId>
      <version>0.15.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>archunit-junit5-api</artifactId>
          <groupId>com.tngtech.archunit</groupId>
        </exclusion>
        <exclusion>
          <artifactId>archunit-junit5-engine</artifactId>
          <groupId>com.tngtech.archunit</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.30</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.7.30</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>2.10.9</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>30.1-jre</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.openjfx</groupId>
      <artifactId>javafx-base</artifactId>
      <version>15.0.1</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <properties>
    <spotbugs.version>4.2.0</spotbugs.version>
    <checkstyle.config>project/checkstyle-config.xml</checkstyle.config>
    <spotbugs.effort>Max</spotbugs.effort>
    <spotbugs.threshold>Low</spotbugs.threshold>
    <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
    <build-helper-maven-plugin.version>3.2.0</build-helper-maven-plugin.version>
    <encoding>UTF-8</encoding>
    <jacoco.version>0.8.6</jacoco.version>
    <spotbugs.maven.version>4.2.0</spotbugs.maven.version>
    <java.release>8</java.release>
    <checkstyle.maven.version>3.1.1</checkstyle.maven.version>
    <checkstyle.version>8.39</checkstyle.version>
    <coverage.threshold>0.95</coverage.threshold>
  </properties>
</project>
