mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-09-27 14:12:59 +02:00
Clean up and improve plugin.yml and pom.xml files
This commit is contained in:
parent
407f73e99b
commit
d0dd63999b
@ -3,6 +3,7 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.craftaro</groupId>
|
<groupId>com.craftaro</groupId>
|
||||||
<artifactId>UltimateStackerParent</artifactId>
|
<artifactId>UltimateStackerParent</artifactId>
|
||||||
@ -11,97 +12,79 @@
|
|||||||
<artifactId>UltimateStacker</artifactId>
|
<artifactId>UltimateStacker</artifactId>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>clean install</defaultGoal>
|
|
||||||
<finalName>UltimateStacker-${project.version}</finalName>
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>3.11.0</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>${java.version}</source>
|
<source>${java.version}</source>
|
||||||
<target>${java.version}</target>
|
<target>${java.version}</target>
|
||||||
<release>${java.release}</release>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
<release>${java.release}</release>
|
||||||
<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>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
<minimizeJar>true</minimizeJar>
|
||||||
<artifactSet>
|
|
||||||
<includes>
|
<relocations>
|
||||||
<include>com.songoda:SongodaCore</include>
|
<relocation>
|
||||||
</includes>
|
<pattern>com.craftaro.core</pattern>
|
||||||
</artifactSet>
|
<shadedPattern>com.craftaro.ultimatestacker.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>
|
||||||
|
<include>**/core/third_party/**</include>
|
||||||
|
</includes>
|
||||||
|
</filter>
|
||||||
</filters>
|
</filters>
|
||||||
<relocations>
|
|
||||||
<relocation>
|
|
||||||
<pattern>com.songoda.core</pattern>
|
|
||||||
<shadedPattern>${project.groupId}.ultimatestacker.core</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
</relocations>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
|
||||||
|
|
||||||
<repositories>
|
<resources>
|
||||||
<repository>
|
<resource>
|
||||||
<id>papermc-repo</id>
|
<directory>src/main/resources</directory>
|
||||||
<url>https://repo.papermc.io/repository/maven-public/</url>
|
<filtering>true</filtering>
|
||||||
</repository>
|
</resource>
|
||||||
<repository>
|
</resources>
|
||||||
<id>sonatype</id>
|
</build>
|
||||||
<url>https://oss.sonatype.org/content/groups/public/</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -122,7 +105,7 @@
|
|||||||
<groupId>com.craftaro</groupId>
|
<groupId>com.craftaro</groupId>
|
||||||
<artifactId>UltimateStackerAPI</artifactId>
|
<artifactId>UltimateStackerAPI</artifactId>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<scope>provided</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -1,30 +1,52 @@
|
|||||||
name: UltimateStacker
|
name: ${project.name}
|
||||||
description: UltimateStacker
|
description: ${project.description}
|
||||||
version: maven-version-number
|
version: ${project.version}
|
||||||
softdepend: [MythicMobs, HolographicDisplays, Holograms, DecentHolograms, CMI, WorldGuard, EpicSpawners, mcMMO, WildStacker, StackMob, BentoBox, ViaVersion]
|
|
||||||
loadbefore: [WorldGuard]
|
|
||||||
main: com.craftaro.ultimatestacker.UltimateStacker
|
|
||||||
author: craftaro
|
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
|
|
||||||
|
main: com.craftaro.ultimatestacker.UltimateStacker
|
||||||
|
softdepend:
|
||||||
|
- MythicMobs
|
||||||
|
- HolographicDisplays
|
||||||
|
- Holograms
|
||||||
|
- DecentHolograms
|
||||||
|
- CMI
|
||||||
|
- WorldGuard
|
||||||
|
- EpicSpawners
|
||||||
|
- mcMMO
|
||||||
|
- WildStacker
|
||||||
|
- StackMob
|
||||||
|
- BentoBox
|
||||||
|
- ViaVersion
|
||||||
|
loadbefore:
|
||||||
|
- WorldGuard
|
||||||
|
|
||||||
|
author: Craftaro
|
||||||
|
website: ${project.url}
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
us:
|
us:
|
||||||
description: Reloads the configuration file
|
description: Reloads the configuration file
|
||||||
default: true
|
default: true
|
||||||
aliases: [UltimateStacker]
|
aliases:
|
||||||
usage: /ultimatestacker reload
|
- UltimateStacker
|
||||||
|
usage: /UltimateStacker reload
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
ultimatestacker.*:
|
UltimateStacker.*:
|
||||||
description: Inherits all plugin permissions
|
description: Inherits all plugin permissions
|
||||||
children:
|
children:
|
||||||
ultimatestacker.admin: true
|
UltimateStacker.admin: true
|
||||||
ultimatestacker.spawner.silktouch: true
|
UltimateStacker.spawner.silktouch: true
|
||||||
ultimatestacker.spawner.nosilkdrop: true
|
UltimateStacker.spawner.noSilkDrop: true
|
||||||
ultimatestacker.admin:
|
|
||||||
|
UltimateStacker.admin:
|
||||||
description: Allows players to edit settings, reload files and other admin commands
|
description: Allows players to edit settings, reload files and other admin commands
|
||||||
default: op
|
default: op
|
||||||
ultimatestacker.spawner.silktouch:
|
|
||||||
|
UltimateStacker.spawner.silktouch:
|
||||||
description: Allows the player to pick up spawners using silk touch
|
description: Allows the player to pick up spawners using silk touch
|
||||||
default: op
|
default: op
|
||||||
ultimatestacker.spawner.nosilkdrop:
|
|
||||||
|
UltimateStacker.spawner.noSilkDrop:
|
||||||
description: Allows the player to receive spawners from mining with a non-silk touched pick
|
description: Allows the player to receive spawners from mining with a non-silk touched pick
|
||||||
default: op
|
default: op
|
@ -3,6 +3,7 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.craftaro</groupId>
|
<groupId>com.craftaro</groupId>
|
||||||
<artifactId>UltimateStackerParent</artifactId>
|
<artifactId>UltimateStackerParent</artifactId>
|
||||||
@ -11,7 +12,6 @@
|
|||||||
|
|
||||||
<artifactId>UltimateStackerAPI</artifactId>
|
<artifactId>UltimateStackerAPI</artifactId>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<packaging>jar</packaging>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
@ -25,32 +25,8 @@
|
|||||||
<release>${java.release}</release>
|
<release>${java.release}</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<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>
|
|
||||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
||||||
<filters>
|
|
||||||
<filter>
|
|
||||||
<artifact>com.songoda:SongodaCore</artifact>
|
|
||||||
<excludeDefaults>false</excludeDefaults>
|
|
||||||
<includes>
|
|
||||||
<include>**/nms/v*/**</include>
|
|
||||||
</includes>
|
|
||||||
</filter>
|
|
||||||
</filters>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>src/main/resources</directory>
|
<directory>src/main/resources</directory>
|
||||||
@ -59,17 +35,6 @@
|
|||||||
</resources>
|
</resources>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>papermc-repo</id>
|
|
||||||
<url>https://repo.papermc.io/repository/maven-public/</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>sonatype</id>
|
|
||||||
<url>https://oss.sonatype.org/content/groups/public/</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
|
11
pom.xml
11
pom.xml
@ -1,9 +1,12 @@
|
|||||||
<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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>com.craftaro</groupId>
|
<groupId>com.craftaro</groupId>
|
||||||
<artifactId>UltimateStackerParent</artifactId>
|
<artifactId>UltimateStackerParent</artifactId>
|
||||||
<version>3.0.0-SNAPSHOT</version>
|
<version>3.0.0-SNAPSHOT</version>
|
||||||
|
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
@ -12,6 +15,10 @@
|
|||||||
<module>Bootstrap</module>
|
<module>Bootstrap</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
|
<name>UltimateStacker</name>
|
||||||
|
<description>The simple yet powerful stacking plugin built to meet all your stacking needs</description>
|
||||||
|
<url>https://craftaro.com/marketplace/product/16</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<java.release>8</java.release>
|
<java.release>8</java.release>
|
||||||
|
Loading…
Reference in New Issue
Block a user