Skip to content

Commit

Permalink
Removed: PacketEvents and Gson as shaded dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram1903 committed Apr 28, 2024
1 parent 2cf5b32 commit 7ba9f61
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ dependencies {
compileOnly("org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
implementation("com.github.retrooper.packetevents:spigot:2.2.1")
implementation("net.kyori:adventure-platform-bukkit:4.3.2")
compileOnly("com.github.retrooper.packetevents:spigot:2.2.1")
implementation("co.aikar:acf-paper:0.5.1-SNAPSHOT")
implementation("com.google.code.gson:gson:2.10.1")
}

tasks {
Expand All @@ -42,17 +40,13 @@ tasks {
minimize()
archiveFileName.set("${project.name}-${project.version}.jar")

relocate("io.github.retrooper.packetevents", "com.deathmotion.playercrasher.shaded.io.github.retrooper.packetevents")
relocate("com.github.retrooper.packetevents", "com.deathmotion.playercrasher.shaded.com.github.retrooper.packetevents")
relocate("net.kyori", "com.deathmotion.playercrasher.shaded.kyori")
relocate("co.aikar.commands", "com.deathmotion.playercrasher.shaded.acf")
relocate("co.aikar.locales", "com.deathmotion.playercrasher.shaded.locales")
relocate("com.google.gson", "com.deathmotion.playercrasher.shaded.gson")
}

runServer {
// The version of the server to run
val version = "1.8.8"
val version = "1.20.4"

minecraftVersion(version)
runDirectory.set(file("server/$version"))
Expand All @@ -61,17 +55,18 @@ tasks {
// 1.17 = Java 16
// 1.18 - 1.20.4 = Java 17
javaLauncher.set(project.javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(8))
languageVersion.set(JavaLanguageVersion.of(17))
})

downloadPlugins {
url("https://ci.codemc.io/job/retrooper/job/packetevents/lastBuild/artifact/spigot/build/libs/packetevents-spigot-2.2.1.jar")
url("https://github.com/EssentialsX/Essentials/releases/download/2.20.1/EssentialsX-2.20.1.jar")
url("https://ci.lucko.me/job/spark/400/artifact/spark-bukkit/build/libs/spark-1.10.59-bukkit.jar")
url("https://download.luckperms.net/1530/bukkit/loader/LuckPerms-Bukkit-5.4.117.jar")
}

jvmArgs = listOf(
"-Dcom.mojang.eula.agree=true"
"-Dcom.mojang.eula.agree=true"
)
}
}

0 comments on commit 7ba9f61

Please sign in to comment.