Skip to content

Commit da3c81a

Browse files
committed
Update dependencies to 1.20.5 and jdk 21
1 parent c65dd83 commit da3c81a

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 7.0.10
4+
5+
* Add support for MC 1.20.5, drop support for other 1.20 versions
6+
37
## 7.0.9
48
* Add support for MC 1.20, drop support for MC 1.19
59
* Made entities spawned via the `/summon` command get treated as plugin-spawned entities

COMPILING.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
Compiling
22
=========
33

4-
You can compile WorldGuard as long as you have some version of Java greater than or equal to 17 installed. Gradle will download JDK 17 specifically if needed,
5-
but it needs some version of Java to bootstrap from.
6-
7-
Note that if you have JRE 17 installed, Gradle will currently attempt to use that to compile, which will not work. It is easiest to uninstall JRE 16 and
8-
replace it with JDK 17.
4+
You can compile WorldGuard as long as you have some version of Java greater than or equal to 21 installed.
5+
Gradle will download JDK 21 specifically if needed, but it needs some version of Java to bootstrap from.
96

107
The build process uses Gradle, which you do *not* need to download. WorldGuard is a multi-module project with three modules:
118

buildSrc/build.gradle.kts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,19 @@ repositories {
1111
dependencies {
1212
implementation(gradleApi())
1313
implementation("gradle.plugin.org.cadixdev.gradle:licenser:0.6.1")
14-
implementation("org.ajoberstar.grgit:grgit-gradle:4.1.1")
15-
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
16-
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.27.1")
14+
implementation("org.ajoberstar.grgit:grgit-gradle:5.2.2")
15+
implementation("com.github.johnrengelman:shadow:8.1.1")
16+
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:5.2.0")
17+
constraints {
18+
val asmVersion = "[9.7,)"
19+
implementation("org.ow2.asm:asm:$asmVersion") {
20+
because("Need Java 21 support in shadow")
21+
}
22+
implementation("org.ow2.asm:asm-commons:$asmVersion") {
23+
because("Need Java 21 support in shadow")
24+
}
25+
implementation("org.vafer:jdependency:[2.10,)") {
26+
because("Need Java 21 support in shadow")
27+
}
28+
}
1729
}

buildSrc/src/main/kotlin/CommonConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fun Project.applyCommonConfiguration() {
2525

2626
plugins.withId("java") {
2727
the<JavaPluginExtension>().toolchain {
28-
languageVersion.set(JavaLanguageVersion.of(17))
28+
languageVersion.set(JavaLanguageVersion.of(21))
2929
}
3030
}
3131

worldguard-bukkit/build.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ repositories {
1212
name = "paper"
1313
url = uri("https://repo.papermc.io/repository/maven-public/")
1414
}
15+
maven {
16+
// TODO: Remove this once paper updated to adventure release
17+
name = "adventure-snapshots"
18+
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
19+
}
1520
}
1621

1722
configurations {
@@ -20,8 +25,8 @@ configurations {
2025

2126
dependencies {
2227
"api"(project(":worldguard-core"))
23-
"compileOnly"("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
24-
"runtimeOnly"("org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT") {
28+
"compileOnly"("io.papermc.paper:paper-api:1.20.5-R0.1-SNAPSHOT")
29+
"runtimeOnly"("org.spigotmc:spigot-api:1.20.5-R0.1-SNAPSHOT") {
2530
exclude("junit", "junit")
2631
}
2732
"api"("com.sk89q.worldedit:worldedit-bukkit:${Versions.WORLDEDIT}") { isTransitive = false }

0 commit comments

Comments
 (0)