mmoitems/MMOItems-Dist/pom.xml

135 lines
4.7 KiB
XML
Raw Normal View History

2022-08-16 12:39:43 +02:00
<?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">
<parent>
<artifactId>MMOItems</artifactId>
<groupId>net.Indyuce</groupId>
2024-12-04 23:48:29 +01:00
<version>6.10.1-SNAPSHOT</version>
2022-08-16 12:39:43 +02:00
</parent>
<packaging>jar</packaging>
<modelVersion>4.0.0</modelVersion>
<artifactId>MMOItems-Dist</artifactId>
2022-10-21 13:53:23 +02:00
<!-- Dependencies -->
<dependencies>
2024-10-21 12:34:05 +02:00
<!-- Paper API -->
2022-10-21 13:53:23 +02:00
<dependency>
2024-06-13 08:16:53 +02:00
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
2024-10-21 12:34:05 +02:00
<version>1.21.1-R0.1-SNAPSHOT</version>
2022-10-21 13:53:23 +02:00
<scope>provided</scope>
2023-08-27 21:18:50 +02:00
<optional>true</optional>
2024-06-13 08:16:53 +02:00
<exclusions>
<exclusion>
<groupId>com.mojang</groupId>
<artifactId>brigadier</artifactId>
</exclusion>
</exclusions>
2022-10-21 13:53:23 +02:00
</dependency>
2022-10-21 13:53:23 +02:00
<!-- MMOItems API -->
<dependency>
<groupId>net.Indyuce</groupId>
<artifactId>MMOItems-API</artifactId>
2024-12-04 23:48:29 +01:00
<version>6.10.1-SNAPSHOT</version>
2022-10-21 13:53:23 +02:00
<optional>true</optional>
</dependency>
<!-- Profile API -->
<dependency>
<groupId>fr.phoenixdevt</groupId>
<artifactId>Profile-API</artifactId>
2023-08-27 21:18:50 +02:00
<version>1.1</version>
<scope>provided</scope>
<optional>true</optional>
2024-10-21 12:34:05 +02:00
<exclusions>
<exclusion>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-chat</artifactId>
</exclusion>
</exclusions>
</dependency>
2022-10-21 13:53:23 +02:00
</dependencies>
2022-08-16 12:39:43 +02:00
2022-10-21 13:53:23 +02:00
<!-- Build -->
<build>
2022-08-16 12:39:43 +02:00
<!-- Includes default files in the Bukkit module -->
<resources>
<resource>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources/</directory>
</resource>
</resources>
<plugins>
<!-- Completely necessary for dev build deployment -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<finalName>MMOItems-${project.version}</finalName>
2022-08-16 12:39:43 +02:00
<outputDirectory>../target/</outputDirectory>
</configuration>
</plugin>
<!-- Shades all project modules into Dist jar -->
<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>
<configuration>
<minimizeJar>false</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
<!--
This plugin makes sure that there are no placeholders in the final
pom.xml version string because having ${revision} would cause issues when
using MythicLib-dist as a dependency
The flatten plugin must run AFTER the shade plugin, otherwise an issue pops up.
To do that, run the flatten plugin on the 'package' phase
https://stackoverflow.com/questions/52552329/use-maven-flatten-plugin-and-maven-shade-plugin-at-the-same-time
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.2.2</version>
<configuration>
<updatePomFile>true</updatePomFile>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>package</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>