From 1536884936c56cd5f9c30545c04e844c0f76a73c Mon Sep 17 00:00:00 2001 From: Warrior <50800980+Warriorrrr@users.noreply.github.com> Date: Fri, 7 Aug 2026 10:37:58 +0200 Subject: [PATCH 1/2] Add export for jdk.internal.misc to silence joml warning in 26.3 --- .../paperweight/core/taskcontainers/PaperclipTasks.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/PaperclipTasks.kt b/paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/PaperclipTasks.kt index 88fc6564..fbdb2a9d 100644 --- a/paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/PaperclipTasks.kt +++ b/paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/PaperclipTasks.kt @@ -67,7 +67,10 @@ class PaperclipTasks( paperclip.from(configurations.named(PAPERCLIP_CONFIG)) mainClass.set(mainClassString) - extraManifestMainAttributes.convention(mapOf("Enable-Native-Access" to "ALL-UNNAMED")) + extraManifestMainAttributes.convention(mapOf( + "Enable-Native-Access" to "ALL-UNNAMED", + "Add-Exports" to "java.base/jdk.internal.misc" + )) outputZip.set(layout.buildDirectory.file(jarName("bundler", classifier).map { "libs/$it" })) } From 154e208eacc7b8a42e624f014432cd0ab6f19c2b Mon Sep 17 00:00:00 2001 From: Warrior <50800980+Warriorrrr@users.noreply.github.com> Date: Fri, 7 Aug 2026 10:43:39 +0200 Subject: [PATCH 2/2] Apply spotless --- .../paperweight/core/taskcontainers/PaperclipTasks.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/PaperclipTasks.kt b/paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/PaperclipTasks.kt index fbdb2a9d..0802d7fa 100644 --- a/paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/PaperclipTasks.kt +++ b/paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/PaperclipTasks.kt @@ -67,10 +67,12 @@ class PaperclipTasks( paperclip.from(configurations.named(PAPERCLIP_CONFIG)) mainClass.set(mainClassString) - extraManifestMainAttributes.convention(mapOf( - "Enable-Native-Access" to "ALL-UNNAMED", - "Add-Exports" to "java.base/jdk.internal.misc" - )) + extraManifestMainAttributes.convention( + mapOf( + "Enable-Native-Access" to "ALL-UNNAMED", + "Add-Exports" to "java.base/jdk.internal.misc" + ) + ) outputZip.set(layout.buildDirectory.file(jarName("bundler", classifier).map { "libs/$it" })) }