Modernize and clean up pom.xml and plugin.yml

This commit is contained in:
Christian Koop 2023-07-18 15:23:51 +02:00
parent 6b930d3e25
commit bdf5caec99
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
2 changed files with 25 additions and 50 deletions

69
pom.xml
View File

@ -9,72 +9,56 @@
<version>2.2.6</version> <version>2.2.6</version>
<name>EpicVouchers</name> <name>EpicVouchers</name>
<description>Enhance your server with awesome customizable vouchers with a lot of features.</description> <description>Create vouchers that players can claim for rewards with seemingly infinite possibilities</description>
<url>https://songoda.com/marketplace/product/25</url> <url>https://craftaro.com/marketplace/product/25</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> <build>
<defaultGoal>clean install</defaultGoal>
<finalName>EpicVouchers-${project.version}</finalName>
<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>
</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.5.0</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>
<finalName>${project.name}-${project.version}</finalName>
<shadedArtifactAttached>false</shadedArtifactAttached> <shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom> <useDependencyReducedPomInJar>true</useDependencyReducedPomInJar>
<minimizeJar>true</minimizeJar>
<artifactSet>
<includes>
<include>com.craftaroSongodaCore</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<relocations> <relocations>
<relocation> <relocation>
<pattern>com.craftaro.core</pattern> <pattern>com.craftaro.core</pattern>
<shadedPattern>${project.groupId}.epicvouchers.core</shadedPattern> <shadedPattern>com.songoda.epicvouchers.core</shadedPattern>
</relocation> </relocation>
</relocations> </relocations>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/**</exclude>
<exclude>LICENSE</exclude>
<exclude>LICENSE.**</exclude>
</excludes>
</filter>
</filters>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
@ -89,13 +73,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>

View File

@ -5,12 +5,10 @@ api-version: 1.13
main: com.songoda.epicvouchers.EpicVouchers main: com.songoda.epicvouchers.EpicVouchers
author: Songoda author: Craftaro
website: ${project.url} website: ${project.url}
commands: commands:
epicvouchers: EpicVouchers:
description: View information on this plugin.
default: true default: true
aliases: [ ev ] aliases: [ ev ]
usage: /ev