<?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>io.sealights</groupId>
  <artifactId>pom</artifactId>
  <packaging>maven-plugin</packaging>
  <name>Sealights Maven Integration Plugin</name>
  <version>0.5.0</version>
  <description>Sealights Maven Integration plugin</description>
  <url>https://github.com/Sealights/SL.OnPremise.MavenIntegrationPlugin</url>
  <developers>
    <developer>
      <id>gregory.futa</id>
      <name>Gregory Futa</name>
      <email>g.futa@ext.tricentis.com</email>
      <organization>sealights</organization>
      <roles>
        <role>architect</role>
        <role>developer</role>
      </roles>
    </developer>
    <developer>
      <id>chris.dekarz</id>
      <name>Krzysztof Dekarz</name>
      <email>c.dekarz@ext.tricentis.com</email>
      <organization>sealights</organization>
      <roles>
        <role>architect</role>
        <role>developer</role>
      </roles>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Sealights Maven License, Version 1.0</name>
      <url>http://license.sealights.co/plug_in_agent_standalone_license.pdf</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <url>https://github.com/Sealights/SL.OnPremise.MavenIntegrationPlugin</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>3.9.0</version>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.13.0</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>versions-maven-plugin</artifactId>
        <version>2.16.2</version>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.5.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <filters>
                <filter>
                  <artifact>io.sealights.*</artifact>
                </filter>
              </filters>
              <artifactSet>
                <excludes>
                  <exclude>ch.qos.logback:*</exclude>
                  <exclude>org.*:*</exclude>
                  <exclude>javax.*:*</exclude>
                  <exclude>com.*:*</exclude>
                  <exclude>classworlds:*</exclude>
                  <exclude>junit:*</exclude>
                  <exclude>commons-*:*</exclude>
                  <exclude>xmlunit:*</exclude>
                  <exclude>info.picocli:*</exclude>
                  <exclude>backport-util-concurrent:*</exclude>
                  <exclude>io.sealights.on-premise.agents:java-agent-infra:test-jar:tests</exclude>
                  <exclude>io.sealights.on-premise.agents:java-agent-http-client:test-jar:tests</exclude>
                </excludes>
              </artifactSet>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>3.2.5</version>
        <configuration>
          <includes>
            <include>**/*Test.java</include>
            <include>**/*Tests.java</include>
            <include>**/*TestCase.java</include>
            <include>**/Test*.java</include>
          </includes>
          <excludes>
            <exclude>**/*CT.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>${maven.enforcer.plugin.version}</version>
        <executions>
          <execution>
            <id>display-info</id>
            <phase>validate</phase>
            <goals>
              <goal>display-info</goal>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <enforceBytecodeVersion>
                  <maxJdkVersion>${allowed.java.bytecode.level}</maxJdkVersion>
                  <ignoredScopes>
                    <ignoredScope>test</ignoredScope>
                    <ignoredScope>provided</ignoredScope>
                  </ignoredScopes>
                  <excludes>
                    <exclude>com.fasterxml.jackson.core:*:jar:*</exclude>
                  </excludes>
                </enforceBytecodeVersion>
                <requireJavaVersion>
                  <version>[1.8,1.9)</version>
                  <message>This project must be compiled with Java 8!</message>
                </requireJavaVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>extra-enforcer-rules</artifactId>
            <version>1.2</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>component-tests</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>3.2.5</version>
            <configuration>
              <includes>
                <include>**/*CT.java</include>
              </includes>
              <excludes />
              <systemPropertyVariables>
                <sealights.plugin.to.test.version>${sealights.plugin.to.test.version}</sealights.plugin.to.test.version>
              </systemPropertyVariables>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>snyk-test</id>
      <build>
        <plugins>
          <plugin>
            <groupId>io.snyk</groupId>
            <artifactId>snyk-maven-plugin</artifactId>
            <version>${maven.snyk.plugin.version}</version>
            <executions>
              <execution>
                <id>snyk-test</id>
                <goals>
                  <goal>test</goal>
                </goals>
              </execution>
              <execution>
                <id>snyk-monitor</id>
                <goals>
                  <goal>monitor</goal>
                </goals>
              </execution>
            </executions>
            <inherited>true</inherited>
            <configuration>
              <args>
                <arg>--file=${project.basedir}/pom.xml</arg>
                <arg>--project-name=${project.groupId}:${project.artifactId}</arg>
                <arg>--target-reference=${sl.snyk.target-ref}</arg>
                <arg>--</arg>
                <arg>-Dscope=runtime</arg>
              </args>
              <skip>${sl.snykSkip}</skip>
              <apiToken>${sl.snyk.api.token}</apiToken>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>snyk-test-full</id>
      <build>
        <plugins>
          <plugin>
            <groupId>io.snyk</groupId>
            <artifactId>snyk-maven-plugin</artifactId>
            <version>${maven.snyk.plugin.version}</version>
            <executions>
              <execution>
                <id>snyk-test</id>
                <goals>
                  <goal>test</goal>
                </goals>
              </execution>
              <execution>
                <id>snyk-monitor</id>
                <goals>
                  <goal>monitor</goal>
                </goals>
              </execution>
            </executions>
            <inherited>true</inherited>
            <configuration>
              <args>
                <arg>--file=${project.basedir}/pom.xml</arg>
                <arg>--project-name=${project.groupId}:${project.artifactId}</arg>
                <arg>--target-reference=${sl.snyk.target-ref}</arg>
                <arg>--dev</arg>
              </args>
              <skip>${sl.snykSkip}</skip>
              <apiToken>${sl.snyk.api.token}</apiToken>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <repositories>
    <repository>
      <id>github</id>
      <url>https://maven.pkg.github.com/Sealights/packages</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-plugin-api</artifactId>
      <version>3.9.15</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>2.0.7</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.10.5</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-platform-engine</artifactId>
          <groupId>org.junit.platform</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-api</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>apiguardian-api</artifactId>
          <groupId>org.apiguardian</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>4.8.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>byte-buddy</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
        <exclusion>
          <artifactId>byte-buddy-agent</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
        <exclusion>
          <artifactId>objenesis</artifactId>
          <groupId>org.objenesis</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-junit-jupiter</artifactId>
      <version>4.8.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-jupiter-api</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>2.15.4</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.httpcomponents.client5</groupId>
      <artifactId>httpclient5</artifactId>
      <version>5.5.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.xmlunit</groupId>
      <artifactId>xmlunit-core</artifactId>
      <version>2.11.0</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <repository>
      <id>github</id>
      <name>GitHub Packages</name>
      <url>https://maven.pkg.github.com/Sealights/SL.OnPremise.MavenIntegrationPlugin</url>
    </repository>
  </distributionManagement>
  <properties>
    <junit.jupiter.version>5.10.5</junit.jupiter.version>
    <slf4j.version>2.0.7</slf4j.version>
    <sl.snykSkip>false</sl.snykSkip>
    <maven.enforcer.plugin.version>3.0.0-M3</maven.enforcer.plugin.version>
    <allowed.java.bytecode.level>1.8</allowed.java.bytecode.level>
    <infra.version>4.0.1182</infra.version>
    <sl.snyk.target-ref>${env.SL_SNYK_TARGET_REF}</sl.snyk.target-ref>
    <sealights.plugin.to.test.version>${project.version}</sealights.plugin.to.test.version>
    <sl.snyk.api.token>${env.SL_SNYK_TOKEN}</sl.snyk.api.token>
    <maven.snyk.plugin.version>2.0.0</maven.snyk.plugin.version>
    <httpclient5.version>5.5.1</httpclient5.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <xmlunit.version>2.11.0</xmlunit.version>
    <jackson.version>2.15.4</jackson.version>
    <mockito.version>4.8.0</mockito.version>
    <maven.plugin.api.version>3.9.15</maven.plugin.api.version>
    <agents.version>4.0.3-PR-1637</agents.version>
  </properties>
</project>
