mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2025-01-31 23:11:22 +01:00
Always have mixins present as annotation processor
This commit is contained in:
parent
a386bd0a74
commit
b153a5b623
12
build.gradle
12
build.gradle
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user