From f53cff02ff2053d60e555a8ef425d4fe238c796d Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:04:46 -0700 Subject: [PATCH] Update adventure --- .gitmodules | 3 -- adventure-temp | 1 - build.gradle.kts | 1 + gradle.properties | 3 -- .../Temp-adventure-update.patch | 29 ++++++++++--------- settings.gradle.kts | 5 ---- 6 files changed, 17 insertions(+), 25 deletions(-) delete mode 160000 adventure-temp rename patches/{api => server}/Temp-adventure-update.patch (52%) diff --git a/.gitmodules b/.gitmodules index 629d414712..7280fb743d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,6 +10,3 @@ [submodule "work/Spigot"] path = work/Spigot url = https://hub.spigotmc.org/stash/scm/spigot/spigot.git -[submodule "adventure-temp"] - path = adventure-temp - url = https://github.com/KyoriPowered/adventure.git diff --git a/adventure-temp b/adventure-temp deleted file mode 160000 index 6feacda2ee..0000000000 --- a/adventure-temp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6feacda2eedef5edfb20e280540d00933861886e diff --git a/build.gradle.kts b/build.gradle.kts index 5d4dae473e..9a598c0648 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -113,6 +113,7 @@ tasks.generateDevelopmentBundle { libraryRepositories.addAll( "https://repo.maven.apache.org/maven2/", paperMavenPublicUrl, + "https://s01.oss.sonatype.org/content/repositories/snapshots/", // todo Remove when updating adventure to release ) } diff --git a/gradle.properties b/gradle.properties index 656dad40e6..2b02b49f36 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,9 +5,6 @@ mcVersion=1.20.3 # Set to true while updating Minecraft version updatingMinecraft=false -# TODO remove with adventure included build -org.gradle.jvmargs=-Xmx1G - org.gradle.caching=true org.gradle.parallel=true org.gradle.vfs.watch=false diff --git a/patches/api/Temp-adventure-update.patch b/patches/server/Temp-adventure-update.patch similarity index 52% rename from patches/api/Temp-adventure-update.patch rename to patches/server/Temp-adventure-update.patch index 3ffcd59221..a1820b3805 100644 --- a/patches/api/Temp-adventure-update.patch +++ b/patches/server/Temp-adventure-update.patch @@ -1,6 +1,6 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> -Date: Wed, 6 Dec 2023 13:38:10 -0700 +Date: Wed, 6 Dec 2023 21:21:46 -0700 Subject: [PATCH] Temp adventure update @@ -8,22 +8,25 @@ diff --git a/build.gradle.kts b/build.gradle.kts index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/build.gradle.kts +++ b/build.gradle.kts -@@ -0,0 +0,0 @@ val apiAndDocs: Configuration by configurations.creating { - configurations.api { - extendsFrom(apiAndDocs) +@@ -0,0 +0,0 @@ configurations.named(log4jPlugins.compileClasspathConfigurationName) { } + val alsoShade: Configuration by configurations.creating + +val extraRuntime: Configuration by configurations.creating +configurations.runtimeClasspath { + extendsFrom(extraRuntime) +} - ++repositories { ++ maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") { ++ mavenContent { ++ snapshotsOnly() ++ includeGroup("net.kyori") ++ } ++ } ++} ++ dependencies { - // api dependencies are listed transitively to API consumers -@@ -0,0 +0,0 @@ dependencies { - } - api("it.unimi.dsi:fastutil:8.5.6") - apiAndDocs(platform("net.kyori:adventure-bom:$adventureVersion")) + extraRuntime(platform("net.kyori:adventure-bom:4.15.0-SNAPSHOT")) - apiAndDocs("net.kyori:adventure-api") - apiAndDocs("net.kyori:adventure-text-minimessage") - apiAndDocs("net.kyori:adventure-text-serializer-gson") + implementation(project(":paper-api")) + implementation(project(":paper-mojangapi")) + // Paper start diff --git a/settings.gradle.kts b/settings.gradle.kts index f3117284e8..5dabeac5af 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -7,11 +7,6 @@ pluginManagement { } } -// todo 1.20.3 -if (file("adventure-temp").exists()) { - includeBuild("adventure-temp") -} - plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0" }