Updated gradle from 7.4 to latest (8.11.1) + required build.gradle.kts changes
Updated minecraft version from 1.20.4 to 1.21.1. Updated java from 17 to 21. Bumped up version from 4.4.0-BETA to 4.5.0-BETA. Added damageSource to botDeathEvent as it is now required for 1.21. Added boolean (false) to comonListenerCookie.createInitial as this is now required. Updated addEntityPacket method to take all required arguments. Updated overridden setListener method to setListenerForServerboundHandshake as it seems this is the new method required (needs to be tested). Updated imports to use org.bukkit.craftbukkit instead of org.bukkit.craftbukkit .v1_20_r3 (it seems craftbukkit updated and versioning is not required anymore).
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
plugins {
|
||||
`java-library`
|
||||
id("io.papermc.paperweight.userdev") version "1.3.7"
|
||||
id("io.papermc.paperweight.userdev") version "1.7.5"
|
||||
id("net.nuggetmc.java-conventions")
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ description = "TerminatorPlus"
|
||||
|
||||
java {
|
||||
// Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||
}
|
||||
|
||||
dependencies {
|
||||
paperDevBundle("1.20.4-R0.1-SNAPSHOT")
|
||||
paperweight.paperDevBundle("1.21.1-R0.1-SNAPSHOT")
|
||||
|
||||
//add the TerminatorPlus-API module
|
||||
implementation(project(":TerminatorPlus-API"))
|
||||
@@ -30,7 +30,7 @@ tasks {
|
||||
|
||||
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
|
||||
// See https://openjdk.java.net/jeps/247 for more information.
|
||||
options.release.set(17)
|
||||
options.release.set(21)
|
||||
}
|
||||
javadoc {
|
||||
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
||||
|
||||
Reference in New Issue
Block a user