2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2021-07-20 04:07:53 +02:00
|
|
|
From: Kyle Wood <kyle@denwav.dev>
|
2021-06-11 14:02:28 +02:00
|
|
|
Date: Thu, 10 Dec 2020 20:54:19 -0800
|
|
|
|
Subject: [PATCH] Setup Gradle project
|
|
|
|
|
2021-06-17 03:46:15 +02:00
|
|
|
The pom.xml file is deleted in this patch so the patch will fail to
|
|
|
|
apply if there are changes made to it from upstream - thus notifying us
|
|
|
|
that changes were made.
|
2021-06-11 14:02:28 +02:00
|
|
|
|
|
|
|
diff --git a/.gitignore b/.gitignore
|
2023-11-25 23:34:42 +01:00
|
|
|
index 37dab9e868dbfb019c271a547d975a48ad1cb571..3811c0d849a3eb028ed1a6b7a2d4747f7f570448 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/.gitignore
|
|
|
|
+++ b/.gitignore
|
|
|
|
@@ -1,3 +1,6 @@
|
|
|
|
+.gradle/
|
|
|
|
+build/
|
|
|
|
+
|
|
|
|
# Eclipse stuff
|
|
|
|
/.classpath
|
|
|
|
/.project
|
2023-11-25 23:34:42 +01:00
|
|
|
@@ -39,3 +42,7 @@ dependency-reduced-pom.xml
|
2021-08-07 02:27:45 +02:00
|
|
|
|
|
|
|
/src/main/resources/achievement
|
|
|
|
/src/main/resources/lang
|
|
|
|
+
|
|
|
|
+# vs code
|
|
|
|
+/.vscode
|
|
|
|
+/.factorypath
|
2021-06-11 14:02:28 +02:00
|
|
|
diff --git a/build.gradle.kts b/build.gradle.kts
|
|
|
|
new file mode 100644
|
2024-04-23 21:23:27 +02:00
|
|
|
index 0000000000000000000000000000000000000000..4ceb1ff4349ce60b418a2cb1140f2612139ccb5d
|
2021-06-11 14:02:28 +02:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/build.gradle.kts
|
2024-04-23 21:23:27 +02:00
|
|
|
@@ -0,0 +1,124 @@
|
2021-10-11 23:31:53 +02:00
|
|
|
+import io.papermc.paperweight.util.*
|
2021-06-11 14:02:28 +02:00
|
|
|
+
|
|
|
|
+plugins {
|
|
|
|
+ java
|
2021-06-15 03:50:13 +02:00
|
|
|
+ `maven-publish`
|
2021-06-11 14:02:28 +02:00
|
|
|
+ id("com.github.johnrengelman.shadow")
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+dependencies {
|
2021-11-26 07:08:46 +01:00
|
|
|
+ implementation(project(":paper-api"))
|
2021-06-11 14:02:28 +02:00
|
|
|
+ implementation("jline:jline:2.12.1")
|
2024-04-23 19:02:08 +02:00
|
|
|
+ implementation("org.apache.logging.log4j:log4j-iostreams:2.22.1") {
|
2021-06-11 14:02:28 +02:00
|
|
|
+ exclude(group = "org.apache.logging.log4j", module = "log4j-api")
|
|
|
|
+ }
|
2024-04-06 21:53:39 +02:00
|
|
|
+ implementation("org.ow2.asm:asm-commons:9.7")
|
2022-06-07 18:52:56 +02:00
|
|
|
+ implementation("commons-lang:commons-lang:2.6")
|
2024-04-23 19:02:08 +02:00
|
|
|
+ runtimeOnly("org.xerial:sqlite-jdbc:3.45.3.0")
|
|
|
|
+ runtimeOnly("com.mysql:mysql-connector-j:8.3.0")
|
2021-06-11 14:02:28 +02:00
|
|
|
+
|
Updated Upstream (Bukkit/CraftBukkit) (#10034)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
Bukkit Changes:
f29cb801 Separate checkstyle-suppressions file is not required
86f99bbe SPIGOT-7540, PR-946: Add ServerTickManager API
d4119585 SPIGOT-6903, PR-945: Add BlockData#getMapColor
b7a2ed41 SPIGOT-7530, PR-947: Add Player#removeResourcePack
9dd56255 SPIGOT-7527, PR-944: Add WindCharge#explode()
994a6163 Attempt upgrade of resolver libraries
CraftBukkit Changes:
b3b43a6ad Add Checkstyle check for unused imports
13fb3358e SPIGOT-7544: Scoreboard#getEntries() doesn't get entries but class names
3dda99c06 SPIGOT-7540, PR-1312: Add ServerTickManager API
2ab4508c0 SPIGOT-6903, PR-1311: Add BlockData#getMapColor
1dbdbbed4 PR-1238: Remove unnecessary sign ticking
659728d2a MC-264285, SPIGOT-7439, PR-1237: Fix unbreakable flint and steel is completely consumed while igniting creeper
e37e29ce0 Increase outdated build delay
c00438b39 SPIGOT-7530, PR-1313: Add Player#removeResourcePack
492dd80ce SPIGOT-7527, PR-1310: Add WindCharge#explode()
e11fbb9d7 Upgrade MySQL driver
9f3a0bd2a Attempt upgrade of resolver libraries
60d16d7ca PR-1306: Centralize Bukkit and Minecraft entity conversion
Spigot Changes:
06d602e7 Rebuild patches
2023-12-17 03:09:28 +01:00
|
|
|
+ runtimeOnly("org.apache.maven:maven-resolver-provider:3.9.6")
|
|
|
|
+ runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.18")
|
|
|
|
+ runtimeOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.18")
|
2021-06-11 14:02:28 +02:00
|
|
|
+
|
2023-09-24 09:16:58 +02:00
|
|
|
+ testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
|
|
|
|
+ testImplementation("org.hamcrest:hamcrest:2.2")
|
2024-04-06 21:53:39 +02:00
|
|
|
+ testImplementation("org.mockito:mockito-core:5.11.0")
|
|
|
|
+ testImplementation("org.ow2.asm:asm-tree:9.7")
|
2021-06-11 14:02:28 +02:00
|
|
|
+}
|
|
|
|
+
|
2024-04-23 19:02:08 +02:00
|
|
|
+val craftbukkitPackageVersion = "1_20_R4" // Paper
|
2021-06-11 14:02:28 +02:00
|
|
|
+tasks.jar {
|
2021-06-17 01:23:02 +02:00
|
|
|
+ archiveClassifier.set("dev")
|
|
|
|
+
|
2021-06-11 14:02:28 +02:00
|
|
|
+ manifest {
|
2021-06-12 03:10:12 +02:00
|
|
|
+ val git = Git(rootProject.layout.projectDirectory.path)
|
2021-06-27 06:51:03 +02:00
|
|
|
+ val gitHash = git("rev-parse", "--short=7", "HEAD").getText().trim()
|
2021-06-23 19:19:44 +02:00
|
|
|
+ val implementationVersion = System.getenv("BUILD_NUMBER") ?: "\"$gitHash\""
|
2021-07-12 08:24:48 +02:00
|
|
|
+ val date = git("show", "-s", "--format=%ci", gitHash).getText().trim() // Paper
|
2021-06-17 01:23:02 +02:00
|
|
|
+ attributes(
|
2021-06-11 14:02:28 +02:00
|
|
|
+ "Main-Class" to "org.bukkit.craftbukkit.Main",
|
|
|
|
+ "Implementation-Title" to "CraftBukkit",
|
2021-06-23 19:19:44 +02:00
|
|
|
+ "Implementation-Version" to "git-Paper-$implementationVersion",
|
2021-07-12 08:24:48 +02:00
|
|
|
+ "Implementation-Vendor" to date, // Paper
|
2021-06-11 14:02:28 +02:00
|
|
|
+ "Specification-Title" to "Bukkit",
|
|
|
|
+ "Specification-Version" to project.version,
|
2021-06-17 01:23:02 +02:00
|
|
|
+ "Specification-Vendor" to "Bukkit Team",
|
|
|
|
+ )
|
|
|
|
+ for (tld in setOf("net", "com", "org")) {
|
|
|
|
+ attributes("$tld/bukkit", "Sealed" to true)
|
2021-06-11 14:02:28 +02:00
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
2021-06-17 01:23:02 +02:00
|
|
|
+publishing {
|
2021-06-15 03:50:13 +02:00
|
|
|
+ publications.create<MavenPublication>("maven") {
|
2021-08-22 19:22:57 +02:00
|
|
|
+ }
|
2021-08-18 00:11:04 +02:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+tasks.shadowJar {
|
2021-11-24 22:27:16 +01:00
|
|
|
+ configurations = listOf(project.configurations.vanillaServer.get())
|
2021-06-11 14:02:28 +02:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+tasks.test {
|
|
|
|
+ exclude("org/bukkit/craftbukkit/inventory/ItemStack*Test.class")
|
2023-09-25 01:05:05 +02:00
|
|
|
+ useJUnitPlatform()
|
2021-06-11 14:02:28 +02:00
|
|
|
+}
|
2021-06-12 02:22:53 +02:00
|
|
|
+
|
2021-06-16 07:10:05 +02:00
|
|
|
+fun TaskContainer.registerRunTask(
|
2021-11-24 02:09:12 +01:00
|
|
|
+ name: String,
|
|
|
|
+ block: JavaExec.() -> Unit
|
2021-06-16 07:10:05 +02:00
|
|
|
+): TaskProvider<JavaExec> = register<JavaExec>(name) {
|
|
|
|
+ group = "paper"
|
2021-11-24 22:27:16 +01:00
|
|
|
+ mainClass.set("org.bukkit.craftbukkit.Main")
|
2021-06-16 07:10:05 +02:00
|
|
|
+ standardInput = System.`in`
|
2021-11-24 02:09:12 +01:00
|
|
|
+ workingDir = rootProject.layout.projectDirectory
|
2022-02-21 21:44:17 +01:00
|
|
|
+ .dir(providers.gradleProperty("paper.runWorkDir").getOrElse("run"))
|
2021-11-24 02:09:12 +01:00
|
|
|
+ .asFile
|
|
|
|
+ javaLauncher.set(project.javaToolchains.defaultJavaLauncher(project))
|
2021-07-09 12:04:33 +02:00
|
|
|
+
|
|
|
|
+ if (rootProject.childProjects["test-plugin"] != null) {
|
|
|
|
+ val testPluginJar = rootProject.project(":test-plugin").tasks.jar.flatMap { it.archiveFile }
|
|
|
|
+ inputs.file(testPluginJar)
|
2021-11-24 02:09:12 +01:00
|
|
|
+ args("-add-plugin=${testPluginJar.get().asFile.absolutePath}")
|
2021-07-09 12:04:33 +02:00
|
|
|
+ }
|
|
|
|
+
|
2021-06-16 07:10:05 +02:00
|
|
|
+ args("--nogui")
|
|
|
|
+ systemProperty("net.kyori.adventure.text.warnWhenLegacyFormattingDetected", true)
|
2021-11-24 02:09:12 +01:00
|
|
|
+ if (providers.gradleProperty("paper.runDisableWatchdog").getOrElse("false") == "true") {
|
2021-06-16 07:10:05 +02:00
|
|
|
+ systemProperty("disable.watchdog", true)
|
2021-06-12 03:10:12 +02:00
|
|
|
+ }
|
2023-06-09 07:57:24 +02:00
|
|
|
+ systemProperty("io.papermc.paper.suppress.sout.nags", true)
|
2021-11-24 02:09:12 +01:00
|
|
|
+
|
2022-02-21 21:44:17 +01:00
|
|
|
+ val memoryGb = providers.gradleProperty("paper.runMemoryGb").getOrElse("2")
|
2023-02-28 01:30:33 +01:00
|
|
|
+ minHeapSize = "${memoryGb}G"
|
|
|
|
+ maxHeapSize = "${memoryGb}G"
|
2021-11-24 02:09:12 +01:00
|
|
|
+
|
2021-06-16 07:10:05 +02:00
|
|
|
+ doFirst {
|
|
|
|
+ workingDir.mkdirs()
|
|
|
|
+ }
|
2021-11-24 02:09:12 +01:00
|
|
|
+
|
2021-06-16 07:10:05 +02:00
|
|
|
+ block(this)
|
|
|
|
+}
|
2021-06-12 03:10:12 +02:00
|
|
|
+
|
2021-11-24 22:27:16 +01:00
|
|
|
+val runtimeClasspathWithoutVanillaServer = configurations.runtimeClasspath.flatMap { it.elements }
|
|
|
|
+ .zip(configurations.vanillaServer.map { it.singleFile.absolutePath }) { runtime, vanilla ->
|
|
|
|
+ runtime.filterNot { it.asFile.absolutePath == vanilla }
|
|
|
|
+ }
|
|
|
|
+
|
2021-06-12 03:10:12 +02:00
|
|
|
+tasks.registerRunTask("runShadow") {
|
|
|
|
+ description = "Spin up a test server from the shadowJar archiveFile"
|
|
|
|
+ classpath(tasks.shadowJar.flatMap { it.archiveFile })
|
2021-11-24 22:27:16 +01:00
|
|
|
+ classpath(runtimeClasspathWithoutVanillaServer)
|
2021-06-12 03:10:12 +02:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+tasks.registerRunTask("runReobf") {
|
|
|
|
+ description = "Spin up a test server from the reobfJar output jar"
|
|
|
|
+ classpath(tasks.reobfJar.flatMap { it.outputJar })
|
2021-11-24 22:27:16 +01:00
|
|
|
+ classpath(runtimeClasspathWithoutVanillaServer)
|
2021-06-12 03:10:12 +02:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+tasks.registerRunTask("runDev") {
|
2021-11-24 22:27:16 +01:00
|
|
|
+ description = "Spin up a non-relocated Mojang-mapped test server"
|
|
|
|
+ classpath(sourceSets.main.map { it.runtimeClasspath })
|
2021-06-12 02:22:53 +02:00
|
|
|
+}
|
2021-06-17 03:43:30 +02:00
|
|
|
diff --git a/pom.xml b/pom.xml
|
|
|
|
deleted file mode 100644
|
2024-04-23 19:02:08 +02:00
|
|
|
index ca5ed64db9554831442170c57e288941454dcbca..0000000000000000000000000000000000000000
|
2021-06-17 03:43:30 +02:00
|
|
|
--- a/pom.xml
|
|
|
|
+++ /dev/null
|
2024-04-23 19:02:08 +02:00
|
|
|
@@ -1,613 +0,0 @@
|
2021-06-17 03:43:30 +02:00
|
|
|
-<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>org.spigotmc</groupId>
|
|
|
|
- <artifactId>spigot</artifactId>
|
|
|
|
- <packaging>jar</packaging>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>1.20.5-R0.1-SNAPSHOT</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <name>Spigot</name>
|
|
|
|
- <url>https://www.spigotmc.org/</url>
|
|
|
|
-
|
2021-11-23 09:57:41 +01:00
|
|
|
- <parent>
|
|
|
|
- <groupId>org.spigotmc</groupId>
|
|
|
|
- <artifactId>spigot-parent</artifactId>
|
|
|
|
- <version>dev-SNAPSHOT</version>
|
|
|
|
- <relativePath>../pom.xml</relativePath>
|
|
|
|
- </parent>
|
|
|
|
-
|
2021-06-17 03:43:30 +02:00
|
|
|
- <properties>
|
|
|
|
- <skipTests>true</skipTests>
|
|
|
|
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
- <api.version>unknown</api.version>
|
|
|
|
- <bt.name>git</bt.name>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <minecraft_version>1_20_R4</minecraft_version>
|
|
|
|
- <maven.compiler.release>21</maven.compiler.release>
|
2021-06-17 03:43:30 +02:00
|
|
|
- </properties>
|
|
|
|
-
|
2021-11-23 09:57:41 +01:00
|
|
|
- <repositories>
|
|
|
|
- <repository>
|
|
|
|
- <id>minecraft-libraries</id>
|
|
|
|
- <name>Minecraft Libraries</name>
|
|
|
|
- <url>https://libraries.minecraft.net/</url>
|
|
|
|
- </repository>
|
|
|
|
- </repositories>
|
2021-06-17 03:43:30 +02:00
|
|
|
-
|
|
|
|
- <dependencies>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.spigotmc</groupId>
|
|
|
|
- <artifactId>spigot-api</artifactId>
|
|
|
|
- <version>${project.version}</version>
|
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.spigotmc</groupId>
|
|
|
|
- <artifactId>minecraft-server</artifactId>
|
|
|
|
- <version>${project.version}</version>
|
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>jline</groupId>
|
|
|
|
- <artifactId>jline</artifactId>
|
|
|
|
- <version>2.12.1</version>
|
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.apache.logging.log4j</groupId>
|
|
|
|
- <artifactId>log4j-iostreams</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>2.22.1</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.ow2.asm</groupId>
|
2024-01-14 10:46:04 +01:00
|
|
|
- <artifactId>asm-commons</artifactId>
|
2024-04-06 21:53:39 +02:00
|
|
|
- <version>9.7</version>
|
2024-01-14 10:46:04 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <!-- Mojang depends -->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.github.oshi</groupId>
|
|
|
|
- <artifactId>oshi-core</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>6.4.10</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.mojang</groupId>
|
|
|
|
- <artifactId>authlib</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>6.0.54</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.mojang</groupId>
|
|
|
|
- <artifactId>brigadier</artifactId>
|
2023-12-05 19:38:29 +01:00
|
|
|
- <version>1.2.9</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.mojang</groupId>
|
|
|
|
- <artifactId>datafixerupper</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>7.0.14</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
2022-03-01 06:43:03 +01:00
|
|
|
- <groupId>com.mojang</groupId>
|
|
|
|
- <artifactId>logging</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>1.2.7</version>
|
2022-03-01 06:43:03 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <groupId>commons-io</groupId>
|
|
|
|
- <artifactId>commons-io</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>2.15.1</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <artifactId>netty-buffer</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
|
|
|
- <artifactId>netty-codec</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
|
|
|
- <artifactId>netty-common</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
|
|
|
- <artifactId>netty-handler</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
|
|
|
- <artifactId>netty-resolver</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
|
|
|
- <artifactId>netty-transport</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
|
|
|
- <artifactId>netty-transport-classes-epoll</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
|
|
|
- <artifactId>netty-transport-native-epoll</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <classifier>linux-x86_64</classifier>
|
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
|
|
|
- <artifactId>netty-transport-native-epoll</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <classifier>linux-aarch_64</classifier>
|
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>io.netty</groupId>
|
|
|
|
- <artifactId>netty-transport-native-unix-common</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>4.1.97.Final</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>it.unimi.dsi</groupId>
|
|
|
|
- <artifactId>fastutil</artifactId>
|
2023-09-21 19:18:04 +02:00
|
|
|
- <version>8.5.12</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <groupId>net.java.dev.jna</groupId>
|
|
|
|
- <artifactId>jna</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>5.14.0</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>net.java.dev.jna</groupId>
|
|
|
|
- <artifactId>jna-platform</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>5.14.0</version>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <groupId>net.sf.jopt-simple</groupId>
|
|
|
|
- <artifactId>jopt-simple</artifactId>
|
|
|
|
- <version>5.0.4</version>
|
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.apache.commons</groupId>
|
|
|
|
- <artifactId>commons-lang3</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>3.14.0</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.apache.logging.log4j</groupId>
|
|
|
|
- <artifactId>log4j-core</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>2.22.1</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.apache.logging.log4j</groupId>
|
2022-12-07 17:46:46 +01:00
|
|
|
- <artifactId>log4j-slf4j2-impl</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>2.22.1</version>
|
2022-12-07 17:46:46 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <groupId>org.slf4j</groupId>
|
|
|
|
- <artifactId>slf4j-api</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>2.0.9</version>
|
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.lz4</groupId>
|
|
|
|
- <artifactId>lz4-java</artifactId>
|
|
|
|
- <version>1.8.0</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <!-- deprecated API depend -->
|
|
|
|
- <dependency>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <groupId>commons-lang</groupId>
|
|
|
|
- <artifactId>commons-lang</artifactId>
|
|
|
|
- <version>2.6</version>
|
|
|
|
- <scope>compile</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <!-- deprecated API depend -->
|
|
|
|
- <dependency>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <groupId>com.googlecode.json-simple</groupId>
|
|
|
|
- <artifactId>json-simple</artifactId>
|
|
|
|
- <version>1.1.1</version>
|
|
|
|
- <scope>runtime</scope>
|
2023-09-24 09:16:58 +02:00
|
|
|
- <exclusions>
|
|
|
|
- <exclusion>
|
|
|
|
- <groupId>junit</groupId>
|
|
|
|
- <artifactId>junit</artifactId>
|
|
|
|
- </exclusion>
|
|
|
|
- </exclusions>
|
2021-06-17 03:43:30 +02:00
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.xerial</groupId>
|
|
|
|
- <artifactId>sqlite-jdbc</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>3.45.3.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <scope>runtime</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
2023-03-14 18:11:24 +01:00
|
|
|
- <groupId>com.mysql</groupId>
|
|
|
|
- <artifactId>mysql-connector-j</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>8.3.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <scope>runtime</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <!-- add these back in as they are not exposed by the API -->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.apache.maven</groupId>
|
|
|
|
- <artifactId>maven-resolver-provider</artifactId>
|
Updated Upstream (Bukkit/CraftBukkit) (#10034)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
Bukkit Changes:
f29cb801 Separate checkstyle-suppressions file is not required
86f99bbe SPIGOT-7540, PR-946: Add ServerTickManager API
d4119585 SPIGOT-6903, PR-945: Add BlockData#getMapColor
b7a2ed41 SPIGOT-7530, PR-947: Add Player#removeResourcePack
9dd56255 SPIGOT-7527, PR-944: Add WindCharge#explode()
994a6163 Attempt upgrade of resolver libraries
CraftBukkit Changes:
b3b43a6ad Add Checkstyle check for unused imports
13fb3358e SPIGOT-7544: Scoreboard#getEntries() doesn't get entries but class names
3dda99c06 SPIGOT-7540, PR-1312: Add ServerTickManager API
2ab4508c0 SPIGOT-6903, PR-1311: Add BlockData#getMapColor
1dbdbbed4 PR-1238: Remove unnecessary sign ticking
659728d2a MC-264285, SPIGOT-7439, PR-1237: Fix unbreakable flint and steel is completely consumed while igniting creeper
e37e29ce0 Increase outdated build delay
c00438b39 SPIGOT-7530, PR-1313: Add Player#removeResourcePack
492dd80ce SPIGOT-7527, PR-1310: Add WindCharge#explode()
e11fbb9d7 Upgrade MySQL driver
9f3a0bd2a Attempt upgrade of resolver libraries
60d16d7ca PR-1306: Centralize Bukkit and Minecraft entity conversion
Spigot Changes:
06d602e7 Rebuild patches
2023-12-17 03:09:28 +01:00
|
|
|
- <version>3.9.6</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <scope>runtime</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.apache.maven.resolver</groupId>
|
|
|
|
- <artifactId>maven-resolver-connector-basic</artifactId>
|
Updated Upstream (Bukkit/CraftBukkit) (#10034)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
Bukkit Changes:
f29cb801 Separate checkstyle-suppressions file is not required
86f99bbe SPIGOT-7540, PR-946: Add ServerTickManager API
d4119585 SPIGOT-6903, PR-945: Add BlockData#getMapColor
b7a2ed41 SPIGOT-7530, PR-947: Add Player#removeResourcePack
9dd56255 SPIGOT-7527, PR-944: Add WindCharge#explode()
994a6163 Attempt upgrade of resolver libraries
CraftBukkit Changes:
b3b43a6ad Add Checkstyle check for unused imports
13fb3358e SPIGOT-7544: Scoreboard#getEntries() doesn't get entries but class names
3dda99c06 SPIGOT-7540, PR-1312: Add ServerTickManager API
2ab4508c0 SPIGOT-6903, PR-1311: Add BlockData#getMapColor
1dbdbbed4 PR-1238: Remove unnecessary sign ticking
659728d2a MC-264285, SPIGOT-7439, PR-1237: Fix unbreakable flint and steel is completely consumed while igniting creeper
e37e29ce0 Increase outdated build delay
c00438b39 SPIGOT-7530, PR-1313: Add Player#removeResourcePack
492dd80ce SPIGOT-7527, PR-1310: Add WindCharge#explode()
e11fbb9d7 Upgrade MySQL driver
9f3a0bd2a Attempt upgrade of resolver libraries
60d16d7ca PR-1306: Centralize Bukkit and Minecraft entity conversion
Spigot Changes:
06d602e7 Rebuild patches
2023-12-17 03:09:28 +01:00
|
|
|
- <version>1.9.18</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <scope>runtime</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.apache.maven.resolver</groupId>
|
|
|
|
- <artifactId>maven-resolver-transport-http</artifactId>
|
Updated Upstream (Bukkit/CraftBukkit) (#10034)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
Bukkit Changes:
f29cb801 Separate checkstyle-suppressions file is not required
86f99bbe SPIGOT-7540, PR-946: Add ServerTickManager API
d4119585 SPIGOT-6903, PR-945: Add BlockData#getMapColor
b7a2ed41 SPIGOT-7530, PR-947: Add Player#removeResourcePack
9dd56255 SPIGOT-7527, PR-944: Add WindCharge#explode()
994a6163 Attempt upgrade of resolver libraries
CraftBukkit Changes:
b3b43a6ad Add Checkstyle check for unused imports
13fb3358e SPIGOT-7544: Scoreboard#getEntries() doesn't get entries but class names
3dda99c06 SPIGOT-7540, PR-1312: Add ServerTickManager API
2ab4508c0 SPIGOT-6903, PR-1311: Add BlockData#getMapColor
1dbdbbed4 PR-1238: Remove unnecessary sign ticking
659728d2a MC-264285, SPIGOT-7439, PR-1237: Fix unbreakable flint and steel is completely consumed while igniting creeper
e37e29ce0 Increase outdated build delay
c00438b39 SPIGOT-7530, PR-1313: Add Player#removeResourcePack
492dd80ce SPIGOT-7527, PR-1310: Add WindCharge#explode()
e11fbb9d7 Upgrade MySQL driver
9f3a0bd2a Attempt upgrade of resolver libraries
60d16d7ca PR-1306: Centralize Bukkit and Minecraft entity conversion
Spigot Changes:
06d602e7 Rebuild patches
2023-12-17 03:09:28 +01:00
|
|
|
- <version>1.9.18</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <scope>runtime</scope>
|
|
|
|
- </dependency>
|
2022-06-25 22:26:00 +02:00
|
|
|
- <!-- annotations -->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.jetbrains</groupId>
|
|
|
|
- <artifactId>annotations-java5</artifactId>
|
2023-06-07 18:24:39 +02:00
|
|
|
- <version>24.0.1</version>
|
2022-06-25 22:26:00 +02:00
|
|
|
- <scope>provided</scope>
|
|
|
|
- </dependency>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <!-- testing -->
|
|
|
|
- <dependency>
|
2023-09-24 09:16:58 +02:00
|
|
|
- <groupId>org.junit.jupiter</groupId>
|
|
|
|
- <artifactId>junit-jupiter</artifactId>
|
|
|
|
- <version>5.10.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <scope>test</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.hamcrest</groupId>
|
2023-09-24 09:16:58 +02:00
|
|
|
- <artifactId>hamcrest</artifactId>
|
|
|
|
- <version>2.2</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <scope>test</scope>
|
|
|
|
- </dependency>
|
2023-10-22 21:12:00 +02:00
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.mockito</groupId>
|
|
|
|
- <artifactId>mockito-core</artifactId>
|
2024-04-06 21:53:39 +02:00
|
|
|
- <version>5.11.0</version>
|
2023-10-22 21:12:00 +02:00
|
|
|
- <scope>test</scope>
|
|
|
|
- </dependency>
|
Updated Upstream (Bukkit/CraftBukkit/Spigot) (#10277)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
Bukkit Changes:
9a80d38c SPIGOT-336, SPIGOT-3366, SPIGOT-5768, SPIGOT-6409, SPIGOT-6861, PR-722: Add EntityRemoveEvent
258086d9 SPIGOT-7417, PR-967: Add Sign#getTargetSide and Sign#getAllowedEditor
ffaba051 SPIGOT-7584: Add missing Tag.ITEMS_NON_FLAMMABLE_WOOD
CraftBukkit Changes:
98b6c1ac7 SPIGOT-7589 Fix NullPointerException when bans expire
a2736ddb0 SPIGOT-336, SPIGOT-3366, SPIGOT-5768, SPIGOT-6409, SPIGOT-6861, PR-1008: Add EntityRemoveEvent
5bf12cb89 SPIGOT-7565: Throw a more descriptive error message when a developer tries to spawn an entity from a CraftBukkit class
76d95fe7e SPIGOT-7417, PR-1343: Add Sign#getTargetSide and Sign#getAllowedEditor
Spigot Changes:
e9ec5485 Rebuild patches
f1b62e0c Rebuild patches
2024-02-23 14:37:33 +01:00
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.ow2.asm</groupId>
|
|
|
|
- <artifactId>asm-tree</artifactId>
|
2024-04-06 21:53:39 +02:00
|
|
|
- <version>9.7</version>
|
Updated Upstream (Bukkit/CraftBukkit/Spigot) (#10277)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing
Bukkit Changes:
9a80d38c SPIGOT-336, SPIGOT-3366, SPIGOT-5768, SPIGOT-6409, SPIGOT-6861, PR-722: Add EntityRemoveEvent
258086d9 SPIGOT-7417, PR-967: Add Sign#getTargetSide and Sign#getAllowedEditor
ffaba051 SPIGOT-7584: Add missing Tag.ITEMS_NON_FLAMMABLE_WOOD
CraftBukkit Changes:
98b6c1ac7 SPIGOT-7589 Fix NullPointerException when bans expire
a2736ddb0 SPIGOT-336, SPIGOT-3366, SPIGOT-5768, SPIGOT-6409, SPIGOT-6861, PR-1008: Add EntityRemoveEvent
5bf12cb89 SPIGOT-7565: Throw a more descriptive error message when a developer tries to spawn an entity from a CraftBukkit class
76d95fe7e SPIGOT-7417, PR-1343: Add Sign#getTargetSide and Sign#getAllowedEditor
Spigot Changes:
e9ec5485 Rebuild patches
f1b62e0c Rebuild patches
2024-02-23 14:37:33 +01:00
|
|
|
- <scope>test</scope>
|
|
|
|
- </dependency>
|
2021-06-17 03:43:30 +02:00
|
|
|
- </dependencies>
|
|
|
|
-
|
|
|
|
- <!-- This builds a completely 'ready to start' jar with all dependencies inside -->
|
|
|
|
- <build>
|
|
|
|
- <plugins>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>net.md-5</groupId>
|
|
|
|
- <artifactId>scriptus</artifactId>
|
2023-08-06 02:21:59 +02:00
|
|
|
- <version>0.5.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <executions>
|
|
|
|
- <execution>
|
|
|
|
- <id>ex-spigot</id>
|
|
|
|
- <configuration>
|
|
|
|
- <format>${bt.name}-Spigot-%s</format>
|
|
|
|
- <scmDirectory>../</scmDirectory>
|
|
|
|
- <descriptionProperty>spigot.desc</descriptionProperty>
|
|
|
|
- </configuration>
|
|
|
|
- <phase>initialize</phase>
|
|
|
|
- <goals>
|
|
|
|
- <goal>describe</goal>
|
|
|
|
- </goals>
|
|
|
|
- </execution>
|
|
|
|
- <execution>
|
|
|
|
- <id>ex-craftbukkit</id>
|
|
|
|
- <configuration>
|
|
|
|
- <format>-%s</format>
|
|
|
|
- <scmDirectory>../../CraftBukkit</scmDirectory>
|
|
|
|
- <descriptionProperty>craftbukkit.desc</descriptionProperty>
|
|
|
|
- </configuration>
|
|
|
|
- <phase>initialize</phase>
|
|
|
|
- <goals>
|
|
|
|
- <goal>describe</goal>
|
|
|
|
- </goals>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-clean-plugin</artifactId>
|
2022-06-07 18:52:56 +02:00
|
|
|
- <version>3.2.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <executions>
|
|
|
|
- <execution>
|
|
|
|
- <phase>initialize</phase>
|
|
|
|
- <goals>
|
|
|
|
- <goal>clean</goal>
|
|
|
|
- </goals>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
2023-04-07 20:39:13 +02:00
|
|
|
- <version>3.3.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <configuration>
|
|
|
|
- <archive>
|
|
|
|
- <manifest>
|
|
|
|
- <addDefaultEntries>false</addDefaultEntries>
|
|
|
|
- </manifest>
|
|
|
|
- <manifestEntries>
|
|
|
|
- <Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
|
|
|
|
- <Implementation-Title>CraftBukkit</Implementation-Title>
|
|
|
|
- <Implementation-Version>${spigot.desc}${craftbukkit.desc}</Implementation-Version>
|
|
|
|
- <Implementation-Vendor>${project.build.outputTimestamp}</Implementation-Vendor>
|
|
|
|
- <Specification-Title>Bukkit</Specification-Title>
|
|
|
|
- <Specification-Version>${api.version}</Specification-Version>
|
|
|
|
- <Specification-Vendor>Bukkit Team</Specification-Vendor>
|
|
|
|
- <Multi-Release>true</Multi-Release>
|
|
|
|
- </manifestEntries>
|
|
|
|
- <manifestSections>
|
|
|
|
- <manifestSection>
|
|
|
|
- <name>net/bukkit/</name>
|
|
|
|
- <manifestEntries>
|
|
|
|
- <Sealed>true</Sealed>
|
|
|
|
- </manifestEntries>
|
|
|
|
- </manifestSection>
|
|
|
|
- <manifestSection>
|
|
|
|
- <name>com/bukkit/</name>
|
|
|
|
- <manifestEntries>
|
|
|
|
- <Sealed>true</Sealed>
|
|
|
|
- </manifestEntries>
|
|
|
|
- </manifestSection>
|
|
|
|
- <manifestSection>
|
|
|
|
- <name>org/bukkit/</name>
|
|
|
|
- <manifestEntries>
|
|
|
|
- <Sealed>true</Sealed>
|
|
|
|
- </manifestEntries>
|
|
|
|
- </manifestSection>
|
|
|
|
- </manifestSections>
|
|
|
|
- </archive>
|
|
|
|
- </configuration>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-shade-plugin</artifactId>
|
2023-08-06 02:21:59 +02:00
|
|
|
- <version>3.5.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <executions>
|
|
|
|
- <execution>
|
|
|
|
- <phase>package</phase>
|
|
|
|
- <goals>
|
|
|
|
- <goal>shade</goal>
|
|
|
|
- </goals>
|
|
|
|
- <configuration>
|
|
|
|
- <createSourcesJar>${shadeSourcesJar}</createSourcesJar>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <artifactSet>
|
|
|
|
- <includes>
|
|
|
|
- <include>org.spigotmc:minecraft-server</include>
|
|
|
|
- </includes>
|
|
|
|
- </artifactSet>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <relocations>
|
|
|
|
- <relocation>
|
|
|
|
- <pattern>org.bukkit.craftbukkit</pattern>
|
|
|
|
- <shadedPattern>org.bukkit.craftbukkit.v${minecraft_version}</shadedPattern>
|
|
|
|
- <excludes>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <exclude>org.bukkit.craftbukkit.bootstrap.*</exclude>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <exclude>org.bukkit.craftbukkit.Main*</exclude>
|
|
|
|
- </excludes>
|
|
|
|
- </relocation>
|
|
|
|
- </relocations>
|
|
|
|
- </configuration>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>net.md-5</groupId>
|
|
|
|
- <artifactId>specialsource-maven-plugin</artifactId>
|
2023-09-29 02:28:26 +02:00
|
|
|
- <version>2.0.2</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <executions>
|
|
|
|
- <execution>
|
|
|
|
- <phase>package</phase>
|
|
|
|
- <goals>
|
|
|
|
- <goal>remap</goal>
|
|
|
|
- </goals>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <id>remap-members</id>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <configuration>
|
2023-09-23 04:06:03 +02:00
|
|
|
- <useProjectDependencies>false</useProjectDependencies>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <logFile>${project.build.directory}/server.txt</logFile>
|
|
|
|
- <srgIn>org.spigotmc:minecraft-server:${project.version}:csrg:maps-spigot-members</srgIn>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <reverse>true</reverse>
|
|
|
|
- </configuration>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <groupId>net.nicoulaj.maven.plugins</groupId>
|
|
|
|
- <artifactId>checksum-maven-plugin</artifactId>
|
|
|
|
- <version>1.11</version>
|
|
|
|
- <executions>
|
|
|
|
- <execution>
|
|
|
|
- <phase>package</phase>
|
|
|
|
- <goals>
|
|
|
|
- <goal>artifacts</goal>
|
|
|
|
- <goal>dependencies</goal>
|
|
|
|
- </goals>
|
|
|
|
- <configuration>
|
|
|
|
- <algorithms>
|
|
|
|
- <algorithm>SHA-256</algorithm>
|
|
|
|
- </algorithms>
|
2021-11-24 23:26:32 +01:00
|
|
|
- <quiet>true</quiet>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <scopes>
|
|
|
|
- <scope>compile</scope>
|
|
|
|
- <scope>runtime</scope>
|
|
|
|
- </scopes>
|
|
|
|
- <shasumSummary>true</shasumSummary>
|
|
|
|
- <transitive>true</transitive>
|
|
|
|
- </configuration>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
2023-06-07 18:24:39 +02:00
|
|
|
- <version>3.6.0</version>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <executions>
|
|
|
|
- <execution>
|
|
|
|
- <phase>package</phase>
|
|
|
|
- <goals>
|
|
|
|
- <goal>single</goal>
|
|
|
|
- </goals>
|
|
|
|
- <configuration>
|
|
|
|
- <archive>
|
|
|
|
- <manifest>
|
|
|
|
- <addDefaultEntries>false</addDefaultEntries>
|
|
|
|
- </manifest>
|
|
|
|
- <manifestEntries>
|
|
|
|
- <Main-Class>org.bukkit.craftbukkit.bootstrap.Main</Main-Class>
|
|
|
|
- </manifestEntries>
|
|
|
|
- </archive>
|
2021-11-23 22:11:33 +01:00
|
|
|
- <attach>false</attach>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <descriptors>
|
|
|
|
- <descriptor>${project.basedir}/src/assembly/bootstrap.xml</descriptor>
|
|
|
|
- </descriptors>
|
|
|
|
- </configuration>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>3.13.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <configuration>
|
|
|
|
- <!-- we use the Eclipse compiler as it doesn't need a JDK -->
|
|
|
|
- <compilerId>eclipse</compilerId>
|
2023-04-07 20:39:13 +02:00
|
|
|
- <!-- default changed with version 3.11.0 -->
|
|
|
|
- <showWarnings>false</showWarnings>
|
2021-06-17 03:43:30 +02:00
|
|
|
- </configuration>
|
|
|
|
- <dependencies>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.codehaus.plexus</groupId>
|
|
|
|
- <artifactId>plexus-compiler-eclipse</artifactId>
|
2024-04-23 19:02:08 +02:00
|
|
|
- <version>2.15.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- </dependency>
|
|
|
|
- </dependencies>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-surefire-plugin</artifactId>
|
2023-06-07 18:24:39 +02:00
|
|
|
- <version>3.1.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <configuration>
|
|
|
|
- <workingDirectory>${basedir}/target/test-server</workingDirectory>
|
|
|
|
- <excludes>
|
|
|
|
- <exclude>org/bukkit/craftbukkit/inventory/ItemStack*Test.java</exclude>
|
|
|
|
- </excludes>
|
|
|
|
- </configuration>
|
|
|
|
- </plugin>
|
|
|
|
- </plugins>
|
|
|
|
- </build>
|
|
|
|
-
|
|
|
|
- <profiles>
|
|
|
|
- <profile>
|
|
|
|
- <id>shadeSourcesJar</id>
|
|
|
|
- <properties>
|
|
|
|
- <shadeSourcesJar>true</shadeSourcesJar>
|
|
|
|
- <shadeSourcesContent>true</shadeSourcesContent>
|
|
|
|
- </properties>
|
|
|
|
- </profile>
|
|
|
|
- <profile>
|
|
|
|
- <id>development</id>
|
|
|
|
- <properties>
|
|
|
|
- <skipTests>false</skipTests>
|
|
|
|
- </properties>
|
|
|
|
- <build>
|
|
|
|
- <plugins>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-checkstyle-plugin</artifactId>
|
2023-06-07 18:24:39 +02:00
|
|
|
- <version>3.3.0</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <executions>
|
|
|
|
- <execution>
|
2021-11-29 00:46:53 +01:00
|
|
|
- <phase>test-compile</phase>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <goals>
|
|
|
|
- <goal>check</goal>
|
|
|
|
- </goals>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- <configuration>
|
|
|
|
- <configLocation>checkstyle.xml</configLocation>
|
|
|
|
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
|
|
|
|
- </configuration>
|
|
|
|
- <dependencies>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.puppycrawl.tools</groupId>
|
|
|
|
- <artifactId>checkstyle</artifactId>
|
2021-11-23 09:57:41 +01:00
|
|
|
- <version>8.45.1</version>
|
2021-06-17 03:43:30 +02:00
|
|
|
- </dependency>
|
|
|
|
- </dependencies>
|
|
|
|
- </plugin>
|
|
|
|
- </plugins>
|
|
|
|
- </build>
|
|
|
|
- </profile>
|
|
|
|
- <profile>
|
|
|
|
- <id>remapped</id>
|
|
|
|
- <build>
|
|
|
|
- <plugins>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>net.md-5</groupId>
|
|
|
|
- <artifactId>specialsource-maven-plugin</artifactId>
|
|
|
|
- <executions>
|
|
|
|
- <execution>
|
2021-11-26 23:58:39 +01:00
|
|
|
- <phase>verify</phase>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <goals>
|
|
|
|
- <goal>remap</goal>
|
|
|
|
- </goals>
|
|
|
|
- <id>remap-obf</id>
|
|
|
|
- <configuration>
|
2023-09-23 04:06:03 +02:00
|
|
|
- <useProjectDependencies>false</useProjectDependencies>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <srgIn>org.spigotmc:minecraft-server:${project.version}:csrg:maps-spigot</srgIn>
|
|
|
|
- <reverse>true</reverse>
|
|
|
|
- <remappedArtifactAttached>true</remappedArtifactAttached>
|
|
|
|
- <remappedClassifierName>remapped-obf</remappedClassifierName>
|
|
|
|
- </configuration>
|
|
|
|
- </execution>
|
|
|
|
- <execution>
|
2021-11-26 23:58:39 +01:00
|
|
|
- <phase>verify</phase>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <goals>
|
|
|
|
- <goal>remap</goal>
|
|
|
|
- </goals>
|
|
|
|
- <id>remap-mojang</id>
|
|
|
|
- <configuration>
|
2023-09-23 04:06:03 +02:00
|
|
|
- <useProjectDependencies>false</useProjectDependencies>
|
2021-06-17 03:43:30 +02:00
|
|
|
- <inputFile>${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf.jar</inputFile>
|
|
|
|
- <srgIn>org.spigotmc:minecraft-server:${project.version}:txt:maps-mojang</srgIn>
|
|
|
|
- <remappedArtifactAttached>true</remappedArtifactAttached>
|
|
|
|
- <remappedClassifierName>remapped-mojang</remappedClassifierName>
|
|
|
|
- </configuration>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
|
|
|
- </plugin>
|
|
|
|
- </plugins>
|
|
|
|
- </build>
|
|
|
|
- </profile>
|
|
|
|
- </profiles>
|
|
|
|
-</project>
|