3
0
Mirror von https://github.com/St3venAU/ArmorStandTools.git synchronisiert 2024-12-28 20:40:12 +01:00

Fix maven build process

Dieser Commit ist enthalten in:
TheCodingEngineer 2024-08-08 22:45:23 +02:00
Ursprung 0726fde530
Commit 2ff7ab6e56
13 geänderte Dateien mit 92 neuen und 86 gelöschten Zeilen

2
.gitignore vendored
Datei anzeigen

@ -1,6 +1,6 @@
### Java template ### Java template
target/classes/io/github/archemedes/knockoutplus/corpse/CorpseRegistry.class
/.idea /.idea
/*.iml
/libs /libs
# Mobile Tools for Java (J2ME) # Mobile Tools for Java (J2ME)

61
pom.xml
Datei anzeigen

@ -16,17 +16,13 @@
</repository> </repository>
<!-- WorldEdit / WorldGuard --> <!-- WorldEdit / WorldGuard -->
<repository> <repository>
<id>sk89q-repo</id> <id>enginehub-repo</id>
<url>https://maven.sk89q.com/repo/</url> <url>https://maven.enginehub.org/repo/</url>
</repository> </repository>
<!-- PlotSquared --> <!-- PlotSquared -->
<repository> <repository>
<id>intellectualsites releases</id> <id>papermc</id>
<url>https://mvn.intellectualsites.com/content/repositories/releases/</url> <url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>intellectualsites snapshots</id>
<url>https://mvn.intellectualsites.com/content/repositories/snapshots/</url>
</repository> </repository>
<repository> <!-- needed due to missing dependency on PlotSquared for adventure-text-minimessage --> <repository> <!-- needed due to missing dependency on PlotSquared for adventure-text-minimessage -->
<id>sonatype-oss-snapshots</id> <id>sonatype-oss-snapshots</id>
@ -34,59 +30,70 @@
</repository> </repository>
</repositories> </repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.intellectualsites.bom</groupId>
<artifactId>bom-newest</artifactId>
<version>1.47</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies> <dependencies>
<!-- Spigot --> <!-- Spigot -->
<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.21-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- WorldGuard --> <!-- WorldGuard -->
<dependency> <dependency>
<groupId>com.sk89q.worldguard</groupId> <groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-bukkit</artifactId> <artifactId>worldguard-bukkit</artifactId>
<version>7.0.7-SNAPSHOT</version> <version>7.0.10</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- WorldEdit --> <!-- WorldEdit -->
<dependency> <dependency>
<groupId>com.sk89q.worldedit</groupId> <groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-core</artifactId> <artifactId>worldedit-core</artifactId>
<version>7.3.0-SNAPSHOT</version> <version>7.3.5</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- PlotSquared Core API --> <!-- PlotSquared Core API -->
<dependency> <dependency>
<groupId>com.plotsquared</groupId> <groupId>com.intellectualsites.plotsquared</groupId>
<artifactId>PlotSquared-Core</artifactId> <artifactId>plotsquared-core</artifactId>
<version>6.1.3</version> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build> <build>
<defaultGoal>clean package install</defaultGoal>
<sourceDirectory>src/main/java</sourceDirectory>
<finalName>${project.name}-${project.version}</finalName> <finalName>${project.name}-${project.version}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.yml</include>
</includes>
</resource>
</resources>
<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.13.0</version>
<configuration> <configuration>
<source>16</source> <release>17</release>
<target>16</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build> </build>
</project> </project>

Datei anzeigen

@ -6,7 +6,6 @@ import org.bukkit.Bukkit;
import org.bukkit.command.CommandException; import org.bukkit.command.CommandException;
import org.bukkit.entity.ArmorStand; import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import java.io.Serializable; import java.io.Serializable;
@ -103,7 +102,7 @@ public record ArmorStandCmd(String command, CommandType type, Integer priority,
} }
@Override @Override
public int compareTo(@NotNull ArmorStandCmd o) { public int compareTo(ArmorStandCmd o) {
return Integer.compare(priority, o.priority); return Integer.compare(priority, o.priority);
} }
} }