In Gradle 5.0, automatic annotation processor invocation has been removed. Sponge must be added to both api
and annotationProcessor
configurations. Alternatively, you could add configurations { api.extendsFrom annotationProcessor }
and only add it to annotationProcessor
. This shouldn’t break any existing projects, because IntelliJ by default uses ./gradlew
instead of gradle
to build projects, but it will screw with any newly developed projects after 5.0 releases, or users who build your projects using their own Gradle version. This is important to remember because mcmod.info
not being generated will be rather hard to find the source of, and in particular a lot of people will go make issues on the SpongeGradle page because of a common misconception that SpongeGradle generates mcmod.info
if they do not have this information.
4 Likes
Thanks for this. Is this significant enough to warrant a pin and/or another announcement?
Not unless a lot of people start complaining about mcmod.info generation.
1 Like