<?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>jmeter-java-dsl-parent</artifactId>
    <groupId>us.abstracta.jmeter</groupId>
    <version>0.45</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>jmeter-java-dsl-jmx2dsl</artifactId>
  <name>${project.artifactId}</name>
  <description>Module which includes executable jar to convert JMX files to DSL code</description>
  <build>
    <finalName>jmx2dsl</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <annotationProcessorPaths>
            <path>
              <groupId>info.picocli</groupId>
              <artifactId>picocli-codegen</artifactId>
              <version>${picocli.version}</version>
            </path>
          </annotationProcessorPaths>
          <compilerArgs>
            <arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
          </compilerArgs>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.4</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <excludes>
                  <exclude>bsf:bsf</exclude>
                  <exclude>com.fifesoft:rsyntaxtextarea</exclude>
                  <exclude>xalan:*</exclude>
                  <exclude>net.sf.saxon:Saxon-HE</exclude>
                  <exclude>com.fasterxml.jackson.core:*</exclude>
                  <exclude>com.formdev:svgSalamander</exclude>
                  <exclude>com.github.weisj:darklaf-*</exclude>
                  <exclude>net.java.dev.jna:jna</exclude>
                  <exclude>org.swinglabs:jxlayer</exclude>
                  <exclude>org.apache.xmlgraphics:xmlgraphics-commons</exclude>
                  <exclude>org.freemarker:freemarker</exclude>
                  <exclude>org.jodd:jodd-*</exclude>
                  <exclude>org.codehaus.groovy:groovy*</exclude>
                  <exclude>xerces:xercesImpl</exclude>
                  <exclude>xml-apis:xml-apis</exclude>
                  <exclude>com.github.ben-manes.caffeine:caffeine</exclude>
                  <exclude>org.checkerframework:checker-qual</exclude>
                  <exclude>org.jsoup:jsoup</exclude>
                  <exclude>com.helger:*</exclude>
                  <exclude>dnsjava:dnsjava</exclude>
                  <exclude>org.brotli:dec</exclude>
                  <exclude>com.miglayout:*</exclude>
                  <exclude>org.apache.tika:*</exclude>
                  <exclude>org.mozilla:rhino</exclude>
                  <exclude>commons-logging:commons-logging</exclude>
                  <exclude>org.apache.commons:commons-jexl*</exclude>
                  <exclude>org.apache-extras.beanshell:bsh</exclude>
                  <exclude>javax.mail:mail</exclude>
                  <exclude>io.burt:jmespath*</exclude>
                  <exclude>jcharts:jcharts</exclude>
                  <exclude>net.minidev:*</exclude>
                  <exclude>org.ow2.asm:asm</exclude>
                  <exclude>com.jayway.jsonpath:json-path</exclude>
                  <exclude>net.sf.jtidy:jtidy</exclude>
                  <exclude>kg.apc:jmeter-plugins-charts</exclude>
                  <exclude>org.eclipse.jetty:*</exclude>
                  <exclude>org.apache.commons:commons-math3</exclude>
                </excludes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>org/apache/jmeter/images/**</exclude>
                    <exclude>org/apache/jmeter/**.properties</exclude>
                    <exclude>bin/report-template/**</exclude>
                    <exclude>**/Log4j2Plugins.dat</exclude>
                    <exclude>META-INF/MANIFEST.MF</exclude>
                    <exclude>META-INF/LICENSE</exclude>
                    <exclude>META-INF/NOTICE**</exclude>
                    <exclude>META-INF/DEPENDENCIES**</exclude>
                    <exclude>META-INF/*.SF</exclude>
                    <exclude>META-INF/*.DSA</exclude>
                    <exclude>META-INF/*.RSA</exclude>
                  </excludes>
                </filter>
              </filters>
              <transformers>
                <transformer>
                  <mainClass>us.abstracta.jmeter.javadsl.jmx2dsl.Jmx2Dsl</mainClass>
                  <manifestEntries>
                    <Multi-Release>true</Multi-Release>
                  </manifestEntries>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.skife.maven</groupId>
        <artifactId>really-executable-jar-maven-plugin</artifactId>
        <version>1.5.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>really-executable-jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <programFile>jmx2dsl</programFile>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.8.2</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>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <version>3.21.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.github.caciocavallosilano</groupId>
      <artifactId>cacio-tta</artifactId>
      <version>1.10</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit</artifactId>
          <groupId>junit</groupId>
        </exclusion>
        <exclusion>
          <artifactId>cacio-shared</artifactId>
          <groupId>com.github.caciocavallosilano</groupId>
        </exclusion>
        <exclusion>
          <artifactId>assertj-swing-junit</artifactId>
          <groupId>org.assertj</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jide-oss</artifactId>
          <groupId>com.jidesoft</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <picocli.version>4.6.2</picocli.version>
  </properties>
</project>
