<?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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>me.NVus</groupId>
  <artifactId>NVus_Prison</artifactId>
  <version>1.0.3</version>
  <packaging>jar</packaging>

  <name>NVus_PrisonSetup</name>

  <properties>
    <java.version>17</java.version>
    <maven.compiler.source>17</maven.compiler.source>
    <maven.compiler.target>17</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
    <url>https://FNGnation.net</url>

    <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.4</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

<!--        <plugin>-->
<!--        <groupId>com.github.wvengen</groupId>-->
<!--        <artifactId>proguard-maven-plugin</artifactId>-->
<!--        <version>2.6.1</version>-->
<!--        <executions>-->
<!--            <execution>-->
<!--                <phase>package</phase>-->
<!--                <goals>-->
<!--                    <goal>proguard</goal>-->
<!--                </goals>-->
<!--            </execution>-->
<!--        </executions>-->
<!--        <configuration>-->
<!--            <obfuscate>true</obfuscate>-->
<!--            <injar>${project.build.finalName}.jar</injar>-->
<!--            <outjar>${project.build.finalName}-proguard.jar</outjar>-->
<!--            <outputDirectory>${project.build.directory}</outputDirectory>-->
<!--            <proguardInclude>${basedir}/proguard.conf</proguardInclude>-->
<!--            <libs>-->
<!--                <lib>${java.home}/jmods/java.base.jmod</lib>-->
<!--            </libs>-->
<!--            <options>-->
<!--                <option>-keep public class me.nvus.nvus_prison_setup.PrisonSetup extends org.bukkit.plugin.java.JavaPlugin { *; }</option>-->
<!--                <option>-keep public class me.nvus.nvus_prison_setup.PrisonSetup extends org.bukkit.plugin.java.JavaPlugin</option>-->
<!--                <option>-overloadaggressively</option>-->
<!--                <option>-repackageclasses</option>-->
<!--            </options>-->
<!--        </configuration>-->
<!--    </plugin>-->

    </plugins>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
  </build>

  <repositories>
      <repository>
          <id>papermc-repo</id>
          <url>https://repo.papermc.io/repository/maven-public/</url>
      </repository>
      <repository>
          <id>sonatype</id>
          <url>https://oss.sonatype.org/content/groups/public/</url>
      </repository>
      <repository>
          <id>enginehub</id>
          <url>https://maven.enginehub.org/repo/</url>
      </repository>
<!--      PlaceholderAPI-->
      <repository>
          <id>placeholderapi</id>
          <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
      </repository>
<!--      Jitpack for Vault etc-->
      <repository>
          <id>jitpack.io</id>
          <url>https://jitpack.io</url>
      </repository>
  </repositories>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.intellectualsites.bom</groupId>
                <artifactId>bom-newest</artifactId> <!--  Ref: https://github.com/IntellectualSites/bom -->
                <version>1.42</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
            <!-- SQLite JDBC Driver -->
            <dependency>
                <groupId>org.xerial</groupId>
                <artifactId>sqlite-jdbc</artifactId>
                <version>3.36.0.3</version> <!-- Use the latest version -->
            </dependency>
        </dependencies>
    </dependencyManagement>

  <dependencies>
      <dependency>
          <groupId>io.papermc.paper</groupId>
          <artifactId>paper-api</artifactId>
          <version>1.20.4-R0.1-SNAPSHOT</version>
          <scope>provided</scope>
      </dependency>
<!--      PlaceholderAPI-->
      <dependency>
          <groupId>me.clip</groupId>
          <artifactId>placeholderapi</artifactId>
          <version>2.11.4</version>
          <scope>provided</scope>
      </dependency>
<!--      Vault-->
      <dependency>
          <groupId>com.github.MilkBowl</groupId>
          <artifactId>VaultAPI</artifactId>
          <version>1.7</version>
          <scope>provided</scope>
      </dependency>

      <!--      WorldGuard-->
      <dependency>
          <groupId>com.sk89q.worldguard</groupId>
          <artifactId>worldguard-bukkit</artifactId>
          <version>7.0.3</version>
          <scope>provided</scope>
      </dependency>
<!--      WorldEdit-->
      <dependency>
          <groupId>com.sk89q.worldedit</groupId>
          <artifactId>worldedit-bukkit</artifactId>
          <version>7.3.0</version> <!-- Use the correct version -->
          <scope>provided</scope>
      </dependency>
<!--      FastAsyncWorldEdit-->
      <dependency>
          <groupId>com.fastasyncworldedit</groupId>
          <artifactId>FastAsyncWorldEdit-Core</artifactId>
          <scope>provided</scope>
      </dependency>


      <!--      <dependency>-->
<!--          <groupId>com.github.wvengen</groupId>-->
<!--          <artifactId>proguard-maven-plugin</artifactId>-->
<!--          <version>2.6.1</version>-->
<!--      </dependency>-->

  </dependencies>
</project>
