<?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>spigot-boot</artifactId>
    <groupId>tech.guilhermekaua.spigot-boot</groupId>
    <version>3.2.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>spigot-boot-core</artifactId>
  <name>${project.artifactId}</name>
  <description>${project.artifactId} core module for Spigot Boot.</description>
  <url>https://github.com/guikaua12/spigot-boot</url>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.11.0</version>
        <executions>
          <execution>
            <id>default-testCompile</id>
            <goals>
              <goal>testCompile</goal>
            </goals>
            <configuration>
              <annotationProcessorPaths>
                <path>
                  <groupId>org.projectlombok</groupId>
                  <artifactId>lombok</artifactId>
                  <version>1.18.36</version>
                </path>
                <path>
                  <groupId>tech.guilhermekaua.spigot-boot</groupId>
                  <artifactId>spigot-boot-annotation-processor-spigot</artifactId>
                  <version>${project.version}</version>
                </path>
              </annotationProcessorPaths>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
          <testSource>17</testSource>
          <testTarget>17</testTarget>
          <compilerArgs>
            <arg>-parameters</arg>
          </compilerArgs>
          <annotationProcessorPaths>
            <path>
              <groupId>org.projectlombok</groupId>
              <artifactId>lombok</artifactId>
              <version>1.18.36</version>
            </path>
            <path>
              <groupId>tech.guilhermekaua.spigot-boot</groupId>
              <artifactId>spigot-boot-annotation-processor-spigot</artifactId>
              <version>${project.version}</version>
            </path>
          </annotationProcessorPaths>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.5.1</version>
        <executions>
          <execution>
            <id>shade-javassist</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createDependencyReducedPom>true</createDependencyReducedPom>
              <artifactSet>
                <includes>
                  <include>org.javassist:javassist</include>
                </includes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>org.javassist:javassist</artifact>
                  <excludes>
                    <exclude>javassist/compiler/**</exclude>
                    <exclude>javassist/convert/**</exclude>
                    <exclude>javassist/expr/**</exclude>
                    <exclude>javassist/runtime/**</exclude>
                    <exclude>javassist/scopedpool/**</exclude>
                    <exclude>javassist/tools/**</exclude>
                    <exclude>javassist/bytecode/analysis/**</exclude>
                    <exclude>javassist/ByteArrayClassPath*.class</exclude>
                    <exclude>javassist/ClassClassPath.class</exclude>
                    <exclude>javassist/ClassMap.class</exclude>
                    <exclude>javassist/ClassPath.class</exclude>
                    <exclude>javassist/ClassPathList.class</exclude>
                    <exclude>javassist/ClassPool*.class</exclude>
                    <exclude>javassist/CodeConverter*.class</exclude>
                    <exclude>javassist/CtArray.class</exclude>
                    <exclude>javassist/CtBehavior.class</exclude>
                    <exclude>javassist/CtClass*.class</exclude>
                    <exclude>javassist/CtConstructor.class</exclude>
                    <exclude>javassist/CtField*.class</exclude>
                    <exclude>javassist/CtMember*.class</exclude>
                    <exclude>javassist/CtMethod*.class</exclude>
                    <exclude>javassist/CtNewClass.class</exclude>
                    <exclude>javassist/CtNewConstructor.class</exclude>
                    <exclude>javassist/CtNewMethod.class</exclude>
                    <exclude>javassist/CtNewWrappedConstructor.class</exclude>
                    <exclude>javassist/CtNewWrappedMethod.class</exclude>
                    <exclude>javassist/CtPrimitiveType.class</exclude>
                    <exclude>javassist/DirClassPath.class</exclude>
                    <exclude>javassist/FieldInitLink.class</exclude>
                    <exclude>javassist/JarClassPath.class</exclude>
                    <exclude>javassist/JarDirClassPath*.class</exclude>
                    <exclude>javassist/Loader*.class</exclude>
                    <exclude>javassist/SerialVersionUID*.class</exclude>
                    <exclude>javassist/Translator.class</exclude>
                    <exclude>javassist/URLClassPath.class</exclude>
                    <exclude>javassist/util/HotSwapper*.class</exclude>
                  </excludes>
                </filter>
              </filters>
              <relocations>
                <relocation>
                  <pattern>javassist</pattern>
                  <shadedPattern>tech.guilhermekaua.spigotboot.shaded.javassist</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.mysql</groupId>
      <artifactId>mysql-connector-j</artifactId>
      <version>8.3.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>protobuf-java</artifactId>
          <groupId>com.google.protobuf</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
      <version>2.2.224</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.ant</groupId>
      <artifactId>ant</artifactId>
      <version>1.10.14</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>ant-launcher</artifactId>
          <groupId>org.apache.ant</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>tech.guilhermekaua.spigot-boot</groupId>
      <artifactId>spigot-boot-utils</artifactId>
      <version>3.2.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>tech.guilhermekaua.spigot-boot</groupId>
      <artifactId>spigot-boot-annotation-processor-spigot</artifactId>
      <version>3.2.0</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.36</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>5.12.1</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.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>5.11.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>5.12.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-jupiter-api</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.jetbrains</groupId>
      <artifactId>annotations</artifactId>
      <version>24.0.1</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <properties>
    <maven.compiler.target>17</maven.compiler.target>
    <maven.compiler.source>17</maven.compiler.source>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
</project>
