Skip to content

Commit aa254c8

Browse files
committed
Merge branch 'refs/heads/version/7.0.x'
# Conflicts: # buildSrc/build.gradle.kts
2 parents f6a0a0b + 2f93b26 commit aa254c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+307
-289
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 and 1.20.6, 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

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object Versions {
22
// const val PISTON = "0.4.3"
33
// const val AUTO_VALUE = "1.6.5"
4-
const val WORLDEDIT = "7.2.14"
4+
const val WORLDEDIT = "7.3.0"
55
const val JUNIT = "5.9.1"
66
const val MOCKITO = "4.9.0"
77
const val SQUIRRELID = "0.3.2"

gradle/wrapper/gradle-wrapper.jar

-18.2 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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-R0.1-SNAPSHOT")
24-
"runtimeOnly"("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") {
28+
"compileOnly"("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")
29+
"runtimeOnly"("org.spigotmc:spigot-api:1.20.6-R0.1-SNAPSHOT") {
2530
exclude("junit", "junit")
2631
}
2732
"api"("com.sk89q.worldedit:worldedit-bukkit:${Versions.WORLDEDIT}") { isTransitive = false }

0 commit comments

Comments
 (0)