mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
Disable the legacy Mixin Annotation Processor by default. (#1343)
This commit is contained in:
@@ -49,7 +49,7 @@ public abstract class MixinExtensionApiImpl implements MixinExtensionAPI {
|
||||
public MixinExtensionApiImpl(Project project) {
|
||||
this.project = Objects.requireNonNull(project);
|
||||
this.useMixinAp = project.getObjects().property(Boolean.class)
|
||||
.convention(true);
|
||||
.convention(false);
|
||||
|
||||
this.refmapTargetNamespace = project.getObjects().property(String.class)
|
||||
.convention(MappingsNamespace.INTERMEDIARY.toString());
|
||||
|
||||
@@ -48,10 +48,10 @@ class FabricAPIBenchmark implements GradleProjectTestTrait {
|
||||
patch: "fabric_api"
|
||||
)
|
||||
|
||||
if (!gradle.buildGradle.text.contains("loom.mixin.useLegacyMixinAp")) {
|
||||
if (gradle.buildGradle.text.contains("loom.mixin.useLegacyMixinAp")) {
|
||||
gradle.buildGradle << """
|
||||
allprojects {
|
||||
loom.mixin.useLegacyMixinAp = false
|
||||
loom.mixin.useLegacyMixinAp = true
|
||||
}
|
||||
""".stripIndent()
|
||||
}
|
||||
|
||||
@@ -50,10 +50,10 @@ class FabricAPITest extends Specification implements GradleProjectTestTrait {
|
||||
)
|
||||
|
||||
// Disable the mixin ap if needed. Fabric API is a large enough test project to see if something breaks.
|
||||
if (disableMixinAp) {
|
||||
if (!disableMixinAp) {
|
||||
gradle.buildGradle << """
|
||||
allprojects {
|
||||
loom.mixin.useLegacyMixinAp = false
|
||||
loom.mixin.useLegacyMixinAp = true
|
||||
}
|
||||
""".stripIndent()
|
||||
}
|
||||
|
||||
@@ -87,12 +87,12 @@ class SimpleProjectTest extends Specification implements GradleProjectTestTrait
|
||||
}
|
||||
|
||||
@Unroll
|
||||
def "remap mixins with tiny-remapper"() {
|
||||
def "remap mixins with mixin AP"() {
|
||||
setup:
|
||||
def gradle = gradleProject(project: "simple", version: PRE_RELEASE_GRADLE)
|
||||
gradle.buildGradle << """
|
||||
allprojects {
|
||||
loom.mixin.useLegacyMixinAp = false
|
||||
loom.mixin.useLegacyMixinAp = true
|
||||
}
|
||||
""".stripIndent()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user