feat(minecraft): Update and Gradle changes for Minecraft 26.1

This commit is contained in:
2026-03-29 15:44:22 +02:00
parent 3c39848b5d
commit 17a33a90e3
30 changed files with 152 additions and 82 deletions

View File

@@ -49,7 +49,7 @@ abstract class MinecraftModComponentPlugin : Plugin<Project> {
attribute(Category.CATEGORY_ATTRIBUTE, objectFactory.named(Category.LIBRARY))
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objectFactory.named(LibraryElements.JAR))
attribute(Bundling.BUNDLING_ATTRIBUTE, objectFactory.named(Bundling.EXTERNAL))
attribute(Usage.USAGE_ATTRIBUTE, objectFactory.named(Usage.JAVA_RUNTIME))
attribute(Usage.USAGE_ATTRIBUTE, objectFactory.named(Usage.JAVA_API))
project.afterEvaluate {
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, targetJvmVersion.get().toInt())