Fetch LuckPerms download link dynamically, update repository configuration

This commit is contained in:
Jason Penilla committed 2025-07-13 11:26:13 -07:00
1 parent db0ae5aac9
commit 0aaa8fa932
6 files changed
+119 -15

No files matched your search

+2 -1
View File
@@ -58,14 +58,15 @@ tasks {
relocateDependency("net.fabricmc.mappingio")
relocateCloud()
}
val luckperms = FetchLuckPermsJar.setup(project, "bukkit")
withType(RunServer::class).configureEach {
version.set(libs.versions.minecraft)
downloadPlugins {
url("https://download.luckperms.net/1575/bukkit/loader/LuckPerms-Bukkit-5.4.158.jar")
github("MiniPlaceholders", "MiniPlaceholders", libs.versions.miniplaceholders.get(), "MiniPlaceholders-Paper-${libs.versions.miniplaceholders.get()}.jar")
github("MiniPlaceholders", "PlaceholderAPI-Expansion", "1.2.0", "PlaceholderAPI-Expansion-1.2.0.jar")
hangar("PlaceholderAPI", libs.versions.placeholderapi.get())
}
pluginJars.from(luckperms.flatMap { it.outputFile })
providers.gradleProperty("smokeTest").map { it.toBoolean() }.getOrElse(false).let { smokeTest ->
if (smokeTest) {
runDirectory.set(layout.buildDirectory.dir("tmp/smokeTest"))