SpongePowered/MixinGradle

Replacing Mixin gradle plugins with your own?

5HT2 opened this issue · 5 comments

5HT2 commented

I'm currently getting this error

Caused by: java.lang.NoClassDefFoundError: org/gradle/api/internal/file/collections/SimpleFileCollection
	at org.spongepowered.asm.gradle.plugins.MixinExtension$_init_closure4.doCall(MixinExtension.groovy:241)
	at org.spongepowered.asm.gradle.plugins.MixinExtension$_init_closure4.doCall(MixinExtension.groovy)

which is caused by MixinGradle 0.6 not supporting Gradle 5, which is entirely understandable given how ancient it is.

Is there a way to replace the extension with my own? Or do I have to bundle my own Mixins fork?

5HT2 commented

Nevermind, I just decided to fork MixinGradle.

which is caused by MixinGradle 0.6 not supporting Gradle 5, which is entirely understandable given how ancient it is.

Your problem is using 0.6, use 0.7 and upgrade Mixin to 0.8.2.

SpongeCommon is using it just fine with Gradle 5.6.4....

5HT2 commented

I can't upgrade Mixin to 8, hence why I'm trying to get older Mixins to work on Gradle 5

I can't upgrade Mixin to 8

Why?

5HT2 commented

Incompatibility with another, much larger mod, which people commonly use alongside mine