<?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>bootstrap-parent</artifactId>
    <groupId>org.geysermc</groupId>
    <version>1.4.0-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>bootstrap-sponge</artifactId>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources/</directory>
      </resource>
    </resources>
    <finalName>${outputName}-Sponge</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.2.0</version>
        <configuration>
          <archive>
            <manifestEntries>
              <Main-Class>org.geysermc.platform.sponge.GeyserSpongeMain</Main-Class>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <relocation>
                  <pattern>com.fasterxml.jackson</pattern>
                  <shadedPattern>org.geysermc.platform.sponge.shaded.jackson</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>io.netty</pattern>
                  <shadedPattern>org.geysermc.platform.sponge.shaded.netty</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>it.unimi.dsi.fastutil</pattern>
                  <shadedPattern>org.geysermc.platform.sponge.shaded.fastutil</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.reflections</pattern>
                  <shadedPattern>org.geysermc.platform.sponge.shaded.reflections</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.google.common</pattern>
                  <shadedPattern>org.geysermc.platform.sponge.shaded.google.common</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.google.guava</pattern>
                  <shadedPattern>org.geysermc.platform.sponge.shaded.google.guava</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.dom4j</pattern>
                  <shadedPattern>org.geysermc.platform.sponge.shaded.dom4j</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>net.kyori</pattern>
                  <shadedPattern>org.geysermc.platform.sponge.shaded.kyori</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <artifactSet>
            <excludes>
              <exclude>com.google.code.gson:*</exclude>
              <exclude>org.yaml:*</exclude>
              <exclude>org.slf4j:*</exclude>
              <exclude>org.ow2.asm:*</exclude>
            </excludes>
          </artifactSet>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.spongepowered</groupId>
      <artifactId>spongeapi</artifactId>
      <version>7.1.0</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>commons-lang3</artifactId>
          <groupId>org.apache.commons</groupId>
        </exclusion>
        <exclusion>
          <artifactId>guice</artifactId>
          <groupId>com.google.inject</groupId>
        </exclusion>
        <exclusion>
          <artifactId>caffeine</artifactId>
          <groupId>com.github.ben-manes.caffeine</groupId>
        </exclusion>
        <exclusion>
          <artifactId>guava</artifactId>
          <groupId>com.github.ben-manes.caffeine</groupId>
        </exclusion>
        <exclusion>
          <artifactId>plugin-meta</artifactId>
          <groupId>org.spongepowered</groupId>
        </exclusion>
        <exclusion>
          <artifactId>configurate-hocon</artifactId>
          <groupId>org.spongepowered</groupId>
        </exclusion>
        <exclusion>
          <artifactId>configurate-gson</artifactId>
          <groupId>org.spongepowered</groupId>
        </exclusion>
        <exclusion>
          <artifactId>configurate-yaml</artifactId>
          <groupId>org.spongepowered</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flow-math</artifactId>
          <groupId>com.flowpowered</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flow-noise</artifactId>
          <groupId>com.flowpowered</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.20</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
</project>
