Modernize and clean up pom.xml

This commit is contained in:
Christian Koop 2023-06-25 12:22:18 +02:00
parent 9e4e198848
commit b3b0ddd105
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 42 additions and 44 deletions

86
pom.xml
View File

@ -10,67 +10,72 @@
<name>EpicEnchants</name> <name>EpicEnchants</name>
<description>Unlock the potential of your weapons, tools and armor by making your own custom enchants.</description> <description>Unlock the potential of your weapons, tools and armor by making your own custom enchants.</description>
<url>https://songoda.com/marketplace/product/67</url> <url>https://craftaro.com/marketplace/product/67</url>
<properties> <properties>
<java.version>1.8</java.version> <maven.compiler.release>8</maven.compiler.release>
<java.release>8</java.release> <maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<build> <issueManagement>
<defaultGoal>clean install</defaultGoal> <url>https://discord.gg/craftaro</url>
<finalName>EpicEnchants-${project.version}</finalName> <system>Discord server</system>
</issueManagement>
<scm>
<url>https://github.com/craftaro/EpicEnchants</url>
<connection>scm:git:git://github.com/craftaro/EpicEnchants.git</connection>
</scm>
<build>
<plugins> <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>
<release>${java.release}</release>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>3.3.0-SNAPSHOT</version> <version>3.4.1</version>
<executions> <executions>
<execution> <execution>
<id>shaded</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
<configuration> <configuration>
<minimizeJar>true</minimizeJar> <finalName>${project.name}-${project.version}</finalName>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet> <shadedArtifactAttached>false</shadedArtifactAttached>
<includes> <useDependencyReducedPomInJar>true</useDependencyReducedPomInJar>
<include>com.songoda:SongodaCore</include> <minimizeJar>true</minimizeJar>
</includes>
</artifactSet> <relocations>
<relocation>
<pattern>com.craftaro.core</pattern>
<shadedPattern>com.songoda.epicenchants.core</shadedPattern>
</relocation>
</relocations>
<filters> <filters>
<filter> <filter>
<artifact>*:*</artifact> <artifact>*:*</artifact>
<excludes> <excludes>
<exclude>META-INF/*.SF</exclude> <exclude>META-INF/**</exclude>
<exclude>META-INF/*.DSA</exclude> <exclude>LICENSE</exclude>
<exclude>META-INF/*.RSA</exclude> <exclude>LICENSE.**</exclude>
</excludes> </excludes>
</filter> </filter>
<filter>
<artifact>com.craftaro:CraftaroCore</artifact>
<excludeDefaults>false</excludeDefaults>
<includes>
<include>**/nms/v*/**</include>
</includes>
</filter>
</filters> </filters>
</configuration> </configuration>
</execution> </execution>
@ -86,13 +91,6 @@
</resources> </resources>
</build> </build>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<url>https://repository.apache.org/snapshots/</url>
</pluginRepository>
</pluginRepositories>
<repositories> <repositories>
<repository> <repository>
<id>craftaro-minecraft-plugins</id> <id>craftaro-minecraft-plugins</id>
@ -100,13 +98,13 @@
</repository> </repository>
<repository> <repository>
<id>songoda-public</id> <id>spigot-repo</id>
<url>https://repo.songoda.com/repository/public/</url> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository> </repository>
<repository> <repository>
<id>jitpack.io</id> <id>placeholderapi</id>
<url>https://jitpack.io/</url> <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository> </repository>
</repositories> </repositories>
@ -121,7 +119,7 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.18-R0.1-SNAPSHOT</version> <version>1.8-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>