Before 1.8, I leveraged the fact that my project.extensions were IConventionAware:
ProjectPackagingExtension extension = project.extensions.create(taskBaseName, ProjectPackagingExtension, project) ConventionMapping mapping = ((IConventionAware) extension).getConventionMapping()
I understand that ConventionMapping isn’t a public feature, but it definitely a widely used and stable feature of Gradle. Is there some magic annotation or some marker interface to have the project.extensions.create call to the add the IConventionMapping interface? I can see that it’s still _Decorated and hence being byte-code altered, I just understand why it’s no longer IConventionAware.