From 1d0bd476a957cfb8c20d6d6797ae45cca79d0ae2 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Wed, 27 Mar 2024 12:46:57 -0700 Subject: build: Update paperweight to 1.5.12 and Gradle Wrapper to 8.7 --- .../re-add-asm-dependency.patch | 29 --------------------- build.gradle.kts | 4 +-- gradle/wrapper/gradle-wrapper.jar | Bin 43462 -> 43453 bytes gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew.bat | 20 +++++++------- patches/server/0001-Setup-Gradle-project.patch | 10 ++----- settings.gradle.kts | 2 +- 7 files changed, 15 insertions(+), 52 deletions(-) delete mode 100644 build-data/spigot-server-patches/re-add-asm-dependency.patch diff --git a/build-data/spigot-server-patches/re-add-asm-dependency.patch b/build-data/spigot-server-patches/re-add-asm-dependency.patch deleted file mode 100644 index 6e33148caa..0000000000 --- a/build-data/spigot-server-patches/re-add-asm-dependency.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- /dev/null 2024-01-13 10:03:30.400485704 -0800 -+++ CraftBukkit-Patches/9999-re-add-asm-dependency.patch 2024-01-13 21:41:27.650692678 -0800 -@@ -0,0 +1,26 @@ -+From e5eb4fb3bfb61dfd2dc97411cfab5fa94033b90c Mon Sep 17 00:00:00 2001 -+From: Jake Potrebic -+Date: Sat, 13 Jan 2024 21:41:02 -0800 -+Subject: [PATCH] re add asm dependency -+ -+ -+diff --git a/pom.xml b/pom.xml -+index 266853a682..d18fdadf92 100644 -+--- a/pom.xml -++++ b/pom.xml -+@@ -58,6 +58,12 @@ -+ 2.19.0 -+ compile -+ -++ -++ org.ow2.asm -++ asm -++ 9.5 -++ compile -++ -+ -+ org.ow2.asm -+ asm-commons -+-- -+2.43.0 -+ diff --git a/build.gradle.kts b/build.gradle.kts index 2e1633818c..77c0f153a2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,7 +11,7 @@ plugins { java `maven-publish` id("com.github.johnrengelman.shadow") version "8.1.1" apply false - id("io.papermc.paperweight.core") version "1.5.11" + id("io.papermc.paperweight.core") version "1.5.12" } allprojects { @@ -93,8 +93,6 @@ paperweight { mappingsPatch = layout.projectDirectory.file("build-data/mappings-patch.tiny") reobfMappingsPatch = layout.projectDirectory.file("build-data/reobf-mappings-patch.tiny") - spigotServerPatchPatchesDir = layout.projectDirectory.dir("build-data/spigot-server-patches") - reobfPackagesToFix.addAll( "co.aikar.timings", "com.destroystokyo.paper", diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index d64cd49177..e6441136f3 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1af9e0930b..b82aa23a4f 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew.bat b/gradlew.bat index 93e3f59f13..25da30dbde 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail diff --git a/patches/server/0001-Setup-Gradle-project.patch b/patches/server/0001-Setup-Gradle-project.patch index 858c5fc329..8d4ad0ab1c 100644 --- a/patches/server/0001-Setup-Gradle-project.patch +++ b/patches/server/0001-Setup-Gradle-project.patch @@ -175,10 +175,10 @@ index 0000000000000000000000000000000000000000..74849d7b20e3c3831a6a6c3715a6e875 +} diff --git a/pom.xml b/pom.xml deleted file mode 100644 -index 22a2e4d92ba6774aa27c0bd123dac912b3e1ee65..0000000000000000000000000000000000000000 +index 323892c4a4bbbb9e36a6295bb390ad82798e213c..0000000000000000000000000000000000000000 --- a/pom.xml +++ /dev/null -@@ -1,614 +0,0 @@ +@@ -1,608 +0,0 @@ - - 4.0.0 @@ -241,12 +241,6 @@ index 22a2e4d92ba6774aa27c0bd123dac912b3e1ee65..00000000000000000000000000000000 - - - org.ow2.asm -- asm -- 9.5 -- compile -- -- -- org.ow2.asm - asm-commons - 9.5 - compile diff --git a/settings.gradle.kts b/settings.gradle.kts index 5dabeac5af..706a83d5dd 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -8,7 +8,7 @@ pluginManagement { } plugins { - id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0" + id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" } if (!file(".git").exists()) { -- cgit v1.2.3