I have a plugin which contains all the common build logic I use for 40+ projects. I was trying to upgrade the build of the plugin itself to use Gradle 7.1.1. The plugin builds fine. However, when I try to apply it to one of my projects (which is still using Gradle 6.8.2) I get the following error (with some identifying information redacted):
Receiver class redacted.RedactedPlugin does not define or inherit an implementation of the resolved method ‘abstract java.lang.Object getProperty(java.lang.String)’ of interface groovy.lang.GroovyObject.
I thought maybe this was due to Gradle 7 using Groovy 3 but I can’t find anything in the Gradle 7 release notes regarding this method in the section that mentions the groovy 3 upgrade and I can’t find anything about this in the Developing Custom Plugins doc either (Developing Custom Gradle Plugins).
Can anyone provide any insight?
Is it maybe not possible to use a plugin built with Gradle 7 in a project still using Gradle 6.8.x?