Always have mixins present as annotation processor

This commit is contained in:
FlorianMichael 2025-01-19 11:26:17 +01:00
parent a386bd0a74
commit b153a5b623
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -133,11 +133,9 @@ subprojects {
minecraft "net.minecraftforge:forge:${forge_version}" minecraft "net.minecraftforge:forge:${forge_version}"
library "org.slf4j:slf4j-api:2.0.16" library "org.slf4j:slf4j-api:2.0.16"
if (versionId < 1_13_2) { // Always include for refmap
// We don't need to package mixins into Forge 1.13+ jars, since Forge already has it library "org.spongepowered:mixin:${mixin_version}"
library "org.spongepowered:mixin:${mixin_version}" annotationProcessor "org.spongepowered:mixin:${mixin_version}:processor"
annotationProcessor "org.spongepowered:mixin:${mixin_version}:processor"
}
library project(":") // Include the base project library project(":") // Include the base project
} }
@ -198,6 +196,10 @@ subprojects {
exclude("META-INF/maven/**") exclude("META-INF/maven/**")
exclude("META-INF/versions/**") exclude("META-INF/versions/**")
if (versionId >= 1_13_2) {
// We don't need to package mixins into Forge 1.13+ jars, since Forge already has it
exclude("org/spongepowered/**")
}
if (versionId >= 1_16_5) { if (versionId >= 1_16_5) {
// Get rid of the services folder, since Forge 1.16+ would conflict with some of the ForgeDev Environment's services // Get rid of the services folder, since Forge 1.16+ would conflict with some of the ForgeDev Environment's services
// And since we don't need them for Mixins anyway, we can just exclude them from the shadowJar // And since we don't need them for Mixins anyway, we can just exclude them from the shadowJar