Last active
October 16, 2022 19:03
-
-
Save lx78WyY0J5/d9522ba75664da00c6a4b78c19ce70a3 to your computer and use it in GitHub Desktop.
pom.xml for PaperMC & Javacord
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
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>uhce.fr</groupId> | |
<artifactId>Plugin-ABC</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<properties> | |
<maven.compiler.source>17</maven.compiler.source> | |
<maven.compiler.target>17</maven.compiler.target> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<repositories> | |
<repository> | |
<id>papermc</id> | |
<url>https://repo.papermc.io/repository/maven-public/</url> | |
</repository> | |
</repositories> | |
<dependencies> | |
<dependency> | |
<groupId>io.papermc.paper</groupId> | |
<artifactId>paper-api</artifactId> | |
<version>1.18.1-R0.1-SNAPSHOT</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.javacord</groupId> | |
<artifactId>javacord</artifactId> | |
<version>3.5.0</version> | |
<scope>compile</scope> | |
<type>pom</type> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>3.2.3</version> | |
<configuration> | |
<shadedArtifactAttached>true</shadedArtifactAttached> | |
<shadedClassifierName>fat</shadedClassifierName> | |
<transformers> | |
<transformer | |
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | |
<manifestEntries> | |
<Main-Class>uhce.fr.main.main</Main-Class> | |
</manifestEntries> | |
</transformer> | |
</transformers> | |
<filters> | |
<filter> | |
<artifact>*:*</artifact> | |
<excludes> | |
<exclude>META-INF/*.SF</exclude> | |
<exclude>META-INF/*.DSA</exclude> | |
<exclude>META-INF/*.RSA</exclude> | |
</excludes> | |
</filter> | |
</filters> | |
</configuration> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment