Modernize and clean up `pom.xml` and `plugin.yml`
This commit is contained in:
parent
52319a1e19
commit
6953fab6c4
118
pom.xml
118
pom.xml
|
@ -1,94 +1,86 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0">
|
<?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.songoda</groupId>
|
<groupId>com.songoda</groupId>
|
||||||
<artifactId>UltimateModeration</artifactId>
|
<artifactId>UltimateModeration</artifactId>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<version>2.0.15</version>
|
<version>2.0.15</version>
|
||||||
|
|
||||||
<build>
|
<name>UltimateModeration</name>
|
||||||
<defaultGoal>clean install</defaultGoal>
|
<description>Take complete control over your server with punishment templates via a simplified yet powerful moderation system</description>
|
||||||
<finalName>UltimateModeration-${project.version}</finalName>
|
<url>https://craftaro.com/marketplace/product/29</url>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.release>8</maven.compiler.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>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<issueManagement>
|
||||||
|
<url>https://discord.gg/craftaro</url>
|
||||||
|
<system>Discord server</system>
|
||||||
|
</issueManagement>
|
||||||
|
|
||||||
|
<scm>
|
||||||
|
<url>https://github.com/craftaro/UltimateModeration</url>
|
||||||
|
<connection>scm:git:git://github.com/craftaro/UltimateModeration.git</connection>
|
||||||
|
</scm>
|
||||||
|
|
||||||
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>3.8.0</version>
|
|
||||||
|
|
||||||
<configuration>
|
|
||||||
<source>1.8</source>
|
|
||||||
<target>1.8</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
||||||
<artifactId>replacer</artifactId>
|
|
||||||
<version>1.5.3</version>
|
|
||||||
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>prepare-package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>replace</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
|
|
||||||
<configuration>
|
|
||||||
<file>${project.build.directory}/classes/plugin.yml</file>
|
|
||||||
<replacements>
|
|
||||||
<replacement>
|
|
||||||
<token>maven-version-number</token>
|
|
||||||
<value>${project.version}</value>
|
|
||||||
</replacement>
|
|
||||||
</replacements>
|
|
||||||
</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</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>
|
||||||
|
<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.songoda:SongodaCore</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.songoda.core</pattern>
|
<pattern>com.songoda.core</pattern>
|
||||||
<shadedPattern>${project.groupId}.ultimatemoderation.core</shadedPattern>
|
<shadedPattern>com.songoda.ultimatemoderation.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>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
@ -98,7 +90,7 @@
|
||||||
</repository>
|
</repository>
|
||||||
|
|
||||||
<repository>
|
<repository>
|
||||||
<id>spigotmc-repo</id>
|
<id>SpigotMC</id>
|
||||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||||
</repository>
|
</repository>
|
||||||
|
|
||||||
|
|
|
@ -1,94 +1,119 @@
|
||||||
name: UltimateModeration
|
name: ${project.name}
|
||||||
description: UltimateModeration
|
description: ${project.description}
|
||||||
main: com.songoda.ultimatemoderation.UltimateModeration
|
version: ${project.version}
|
||||||
version: maven-version-number
|
|
||||||
author: Songoda
|
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
softdepend: [ Vault, FabledSkyBlock ]
|
|
||||||
|
main: com.songoda.ultimatemoderation.UltimateModeration
|
||||||
|
softdepend:
|
||||||
|
- Vault
|
||||||
|
- FabledSkyBlock
|
||||||
|
|
||||||
|
author: Craftaro
|
||||||
|
website: ${project.url}
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
UltimateModeration:
|
UltimateModeration:
|
||||||
description: View information on this plugin.
|
description: View information on this plugin.
|
||||||
default: true
|
default: true
|
||||||
aliases: [ um, p ]
|
aliases: [ um, p ]
|
||||||
usage: /um
|
usage: /um
|
||||||
|
|
||||||
ClearChat:
|
ClearChat:
|
||||||
description: Clear the chat
|
description: Clear the chat
|
||||||
default: false
|
default: false
|
||||||
aliases: [ cc ]
|
aliases: [ cc ]
|
||||||
usage: /cc
|
usage: /cc
|
||||||
|
|
||||||
ToggleChat:
|
ToggleChat:
|
||||||
description: Toggle chat
|
description: Toggle chat
|
||||||
default: false
|
default: false
|
||||||
aliases: [ tc ]
|
aliases: [ tc ]
|
||||||
usage: /tc
|
usage: /tc
|
||||||
|
|
||||||
RandomPlayer:
|
RandomPlayer:
|
||||||
description: Random Player
|
description: Random Player
|
||||||
default: false
|
default: false
|
||||||
aliases: [ rp ]
|
aliases: [ rp ]
|
||||||
usage: /rp
|
usage: /rp
|
||||||
|
|
||||||
Vanish:
|
Vanish:
|
||||||
description: Vanish
|
description: Vanish
|
||||||
default: false
|
default: false
|
||||||
aliases: [ v ]
|
aliases: [ v ]
|
||||||
usage: /v
|
usage: /v
|
||||||
|
|
||||||
Spy:
|
Spy:
|
||||||
description: Spy
|
description: Spy
|
||||||
default: false
|
default: false
|
||||||
usage: /spy
|
usage: /spy
|
||||||
|
|
||||||
Revive:
|
Revive:
|
||||||
description: Revive
|
description: Revive
|
||||||
default: false
|
default: false
|
||||||
usage: /revive
|
usage: /revive
|
||||||
|
|
||||||
InvSee:
|
InvSee:
|
||||||
description: InvSee
|
description: InvSee
|
||||||
default: false
|
default: false
|
||||||
usage: /invsee
|
usage: /invsee
|
||||||
|
|
||||||
Freeze:
|
Freeze:
|
||||||
description: Freeze
|
description: Freeze
|
||||||
default: false
|
default: false
|
||||||
usage: /freeze
|
usage: /freeze
|
||||||
|
|
||||||
ViewEnderChest:
|
ViewEnderChest:
|
||||||
description: ViewEnderChest
|
description: ViewEnderChest
|
||||||
default: false
|
default: false
|
||||||
usage: /ViewEnderChest
|
usage: /ViewEnderChest
|
||||||
|
|
||||||
Ban:
|
Ban:
|
||||||
description: Ban
|
description: Ban
|
||||||
default: false
|
default: false
|
||||||
usage: /ban
|
usage: /ban
|
||||||
|
|
||||||
Unban:
|
Unban:
|
||||||
description: Unban
|
description: Unban
|
||||||
default: false
|
default: false
|
||||||
usage: /unban
|
usage: /unban
|
||||||
|
|
||||||
Kick:
|
Kick:
|
||||||
description: Kick
|
description: Kick
|
||||||
default: false
|
default: false
|
||||||
usage: /kick
|
usage: /kick
|
||||||
|
|
||||||
Mute:
|
Mute:
|
||||||
description: Mute
|
description: Mute
|
||||||
default: false
|
default: false
|
||||||
usage: /mute
|
usage: /mute
|
||||||
|
|
||||||
Unmute:
|
Unmute:
|
||||||
description: Unmute
|
description: Unmute
|
||||||
default: false
|
default: false
|
||||||
usage: /unmute
|
usage: /unmute
|
||||||
|
|
||||||
Warn:
|
Warn:
|
||||||
description: Warn
|
description: Warn
|
||||||
default: false
|
default: false
|
||||||
usage: /warn
|
usage: /warn
|
||||||
|
|
||||||
RunTemplate:
|
RunTemplate:
|
||||||
description: RunTemplate
|
description: RunTemplate
|
||||||
default: false
|
default: false
|
||||||
usage: /runtemplate
|
usage: /runtemplate
|
||||||
|
|
||||||
Ticket:
|
Ticket:
|
||||||
description: Ticket
|
description: Ticket
|
||||||
default: false
|
default: false
|
||||||
aliases: [ tickets ]
|
aliases: [ tickets ]
|
||||||
usage: /ticket
|
usage: /ticket
|
||||||
|
|
||||||
StaffChat:
|
StaffChat:
|
||||||
description: StaffChat
|
description: StaffChat
|
||||||
default: false
|
default: false
|
||||||
aliases: [ sc ]
|
aliases: [ sc ]
|
||||||
usage: /staffchat
|
usage: /staffchat
|
||||||
|
|
||||||
SlowMode:
|
SlowMode:
|
||||||
description: SlowMode
|
description: SlowMode
|
||||||
default: false
|
default: false
|
||||||
|
|
Loading…
Reference in New Issue