From e92795886c9e9424bd752a33ea31ba3dd1315273 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Fri, 26 Apr 2024 14:19:52 -0700 Subject: [PATCH] Bump dev bundle revision to 4 It's important that 1.20.5 plugins include the mappings metadata in their manifests. For this reason we are bumping the dev bundle revision without any changes to the format. --- .../kotlin/io/papermc/paperweight/tasks/GenerateDevBundle.kt | 2 +- .../paperweight/userdev/internal/setup/ExtractDevBundle.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/paperweight-lib/src/main/kotlin/io/papermc/paperweight/tasks/GenerateDevBundle.kt b/paperweight-lib/src/main/kotlin/io/papermc/paperweight/tasks/GenerateDevBundle.kt index 6854c8b53..b2876ba92 100644 --- a/paperweight-lib/src/main/kotlin/io/papermc/paperweight/tasks/GenerateDevBundle.kt +++ b/paperweight-lib/src/main/kotlin/io/papermc/paperweight/tasks/GenerateDevBundle.kt @@ -372,7 +372,7 @@ abstract class GenerateDevBundle : DefaultTask() { const val mojangMappedPaperclipFileName = "paperclip-$DEOBF_NAMESPACE.jar" // Should be bumped when the dev bundle config/contents changes in a way which will require users to update paperweight - const val currentDataVersion = 3 + const val currentDataVersion = 4 fun createCoordinatesFor(project: Project): String = sequenceOf(project.group, project.name.lowercase(Locale.ENGLISH), "userdev-" + project.version).joinToString(":") diff --git a/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/internal/setup/ExtractDevBundle.kt b/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/internal/setup/ExtractDevBundle.kt index 9ff17b4a3..e7c719000 100644 --- a/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/internal/setup/ExtractDevBundle.kt +++ b/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/internal/setup/ExtractDevBundle.kt @@ -31,6 +31,7 @@ import kotlin.io.path.* private val supported = mapOf( 2 to DevBundleV2.Config::class, // 1.17.1 + 3 to GenerateDevBundle.DevBundleConfig::class, GenerateDevBundle.currentDataVersion to GenerateDevBundle.DevBundleConfig::class, )