<?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>GuizhanLib</artifactId>
    <groupId>net.guizhanss</groupId>
    <version>1.0.2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>GuizhanLib-api</artifactId>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.3.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <createSourcesJar>true</createSourcesJar>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>META-INF/*</exclude>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.2.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.4.0</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>aggregate-jar</goal>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <includeDependencySources>true</includeDependencySources>
                  <detectOfflineLinks>false</detectOfflineLinks>
                  <dependencySourceIncludes>
                    <dependencySourceInclude>net.guizhanss:*</dependencySourceInclude>
                  </dependencySourceIncludes>
                  <groups>
                    <group>
                      <title>Module "GuizhanLib-common"</title>
                      <packages>net.guizhanss.guizhanlib.common:net.guizhanss.guizhanlib.java:net.guizhanss.guizhanlib.utils</packages>
                    </group>
                    <group>
                      <title>Module "GuizhanLib-localization"</title>
                      <packages>net.guizhanss.guizhanlib.localization</packages>
                    </group>
                    <group>
                      <title>Module "GuizhanLib-minecraft"</title>
                      <packages>net.guizhanss.guizhanlib.minecraft</packages>
                    </group>
                    <group>
                      <title>Module "GuizhanLib-slimefun"</title>
                      <packages>net.guizhanss.guizhanlib.slimefun</packages>
                    </group>
                    <group>
                      <title>Module "GuizhanLib-updater"</title>
                      <packages>net.guizhanss.guizhanlib.updater</packages>
                    </group>
                  </groups>
                  <links>
                    <link>https://hub.spigotmc.org/javadocs/spigot/</link>
                  </links>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <includeDependencySources>true</includeDependencySources>
              <detectOfflineLinks>false</detectOfflineLinks>
              <dependencySourceIncludes>
                <dependencySourceInclude>net.guizhanss:*</dependencySourceInclude>
              </dependencySourceIncludes>
              <groups>
                <group>
                  <title>Module "GuizhanLib-common"</title>
                  <packages>net.guizhanss.guizhanlib.common:net.guizhanss.guizhanlib.java:net.guizhanss.guizhanlib.utils</packages>
                </group>
                <group>
                  <title>Module "GuizhanLib-localization"</title>
                  <packages>net.guizhanss.guizhanlib.localization</packages>
                </group>
                <group>
                  <title>Module "GuizhanLib-minecraft"</title>
                  <packages>net.guizhanss.guizhanlib.minecraft</packages>
                </group>
                <group>
                  <title>Module "GuizhanLib-slimefun"</title>
                  <packages>net.guizhanss.guizhanlib.slimefun</packages>
                </group>
                <group>
                  <title>Module "GuizhanLib-updater"</title>
                  <packages>net.guizhanss.guizhanlib.updater</packages>
                </group>
              </groups>
              <links>
                <link>https://hub.spigotmc.org/javadocs/spigot/</link>
              </links>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <repositories>
    <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io/</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>org.spigotmc</groupId>
      <artifactId>spigot-api</artifactId>
      <version>1.19-R0.1-SNAPSHOT</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>io.github.Slimefun</groupId>
      <artifactId>Slimefun4</artifactId>
      <version>RC-32</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.code.findbugs</groupId>
      <artifactId>jsr305</artifactId>
      <version>3.0.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.24</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>5.9.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>com.github.seeseemelk</groupId>
      <artifactId>MockBukkit-v1.19</artifactId>
      <version>2.29.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>annotations</artifactId>
          <groupId>org.jetbrains</groupId>
        </exclusion>
        <exclusion>
          <artifactId>paper-api</artifactId>
          <groupId>io.papermc.paper</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hamcrest-library</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>adventure-platform-bungeecord</artifactId>
          <groupId>net.kyori</groupId>
        </exclusion>
        <exclusion>
          <artifactId>maven-resolver-provider</artifactId>
          <groupId>org.apache.maven</groupId>
        </exclusion>
        <exclusion>
          <artifactId>maven-resolver-connector-basic</artifactId>
          <groupId>org.apache.maven.resolver</groupId>
        </exclusion>
        <exclusion>
          <artifactId>maven-resolver-transport-http</artifactId>
          <groupId>org.apache.maven.resolver</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>
