Skip to content

Commit

Permalink
Add 1.21.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
libraryaddict committed Dec 11, 2024
1 parent 3c99810 commit 9bba58f
Show file tree
Hide file tree
Showing 11 changed files with 592 additions and 18 deletions.
6 changes: 2 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ net-kyori-adventure-api = "4.17.0"
com-retro-packetevents = "2.6.0"
placeholder-api = "2.11.6"

bungeecord-chat = "1.16-R0.4"
org-spigotmc-spigot = "1.21.3-R0.1-SNAPSHOT"
io-papermc-paper-api = "1.21.3-R0.1-SNAPSHOT"
org-spigotmc-spigot = "1.21.4-R0.1-SNAPSHOT"
io-papermc-paper-api = "1.21.4-R0.1-SNAPSHOT"


[libraries]
Expand All @@ -35,7 +34,6 @@ net-kyori-adventure-api = { module = "net.kyori:adventure-api", version.ref = "n
net-kyori-adventure-text-minimessage = { module = "net.kyori:adventure-text-minimessage", version.ref = "net-kyori-adventure-api" }
net-kyori-adventure-text-serializer-gson = { module = "net.kyori:adventure-text-serializer-gson", version.ref = "net-kyori-adventure-api" }
net-kyori-adventure-text-serializer-json = { module = "net.kyori:adventure-text-serializer-json", version.ref = "net-kyori-adventure-api" }
net-md-v5-bungeecord-chat = { module = "net.md-5:bungeecord-chat", version.ref = "bungeecord-chat" }
org-spigotmc-spigot = { module = "org.spigotmc:spigot", version.ref = "org-spigotmc-spigot" }
org-spigotmc-spigot-api = { module = "org.spigotmc:spigot-api", version.ref = "org-spigotmc-spigot" }
com-retro-packetevents = { module = "com.github.retrooper:packetevents-spigot", version.ref = "com-retro-packetevents" }
Expand Down
2 changes: 1 addition & 1 deletion nms/specialSource.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def findInGradleCache = { group, module, version, fileName ->
def baseDir = new File(gradleCache, "${group}/${module}/${version}")

if (!baseDir.exists()) {
throw new Exception("Failed to resolve ${baseDir} when trying to load ${fileName}. Cache missing");
throw new Exception("Failed to resolve ${baseDir} when trying to load ${fileName}. Cache missing. If resolved using local maven repo, be advised that this script expects a cache from remote, which is stored via gradle.");
}

def result = baseDir.listFiles()?.findAll { it.isDirectory() }?.collectMany({ it.listFiles().flatten() })?.find { it.name == fileName }?.path
Expand Down
18 changes: 18 additions & 0 deletions nms/v1_21_R3/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
plugins {
`java-library`
}

apply(from = rootProject.file("nms/nmsModule.gradle"))

extra["craftbukkitVersion"] = "1.21.4-R0.1-SNAPSHOT";

description = "v1_21_R3"

dependencies {
compileOnly(libs.com.mojang.authlib.new)
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
Loading

0 comments on commit 9bba58f

Please sign in to comment.