<?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>com.example</groupId>
    <artifactId>zz_MCdiscord_bot</artifactId>
    <version>1.1be06</version>
    <packaging>jar</packaging> <!-- Specify the correct packaging type here -->

    <properties>
        <!-- Specify Java version -->
        <maven.compiler.source>22</maven.compiler.source>
        <maven.compiler.target>22</maven.compiler.target>
    </properties>

    <repositories>
        <repository>
            <id>spigot-repo</id>
            <name>spigot-1.20.4</name>
            <url>https://repo.rosewooddev.io/repository/public/</url>
        </repository>

     <repository>
        <id>buk-repo</id>
        <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
    </repository>

    <repository>
        <id>jcenter</id>
        <name>jcenter-bintray</name>
        <url>https://jcenter.bintray.com</url>
    </repository>

    </repositories>    

    <dependencies>
        <dependency>
            <groupId>org.bukkit</groupId>
            <artifactId>bukkit</artifactId>
            <version>1.15.2-R0.1-SNAPSHOT</version> <!-- Update to the appropriate version -->
            <scope>provided</scope>
        </dependency>
        <!-- Spigot API dependency -->
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot</artifactId>
            <version>1.20.4</version>
            <scope>provided</scope>
        </dependency>
       <!--(Java Discord API) -->
        <dependency>
            <groupId>com.discord4j</groupId>
            <artifactId>discord4j-core</artifactId>
            <version>3.2.6</version>
        </dependency>


        <!-- Logging-->
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <version>2.23.1</version> <!-- Use the latest STABLE version -->
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
            <version>2.23.1</version>
        </dependency>


        <!-- Add other dependencies as needed -->
  
    </dependencies>

<build>
    <plugins>
       <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>3.5.2</version> <!-- Use the latest version -->
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>shade</goal>
            </goals>
            <configuration>
                <artifactSet>
                    <includes>
                        <include>com.discord4j</include>
                    </includes>
                </artifactSet>
                <relocations>
                    <relocation>
                        <pattern>club.minced</pattern>
                        <shadedPattern>com.example.MCdiscordbot.shaded.club.minced</shadedPattern>
                    </relocation>
                </relocations>
            </configuration>
        </execution>
    </executions>
</plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>3.2.0</version> <!-- Use the latest version -->
            <executions>
                <execution>
                    <id>analyze-dependencies</id>
                    <phase>validate</phase> <!-- Choose the appropriate phase -->
                    <goals>
                        <goal>analyze-only</goal>
                    </goals>
                    <configuration>
                        <!-- Configuration options if needed -->
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
</project>