I am checking out Gradle 6 and the new Module Metadata.
However, for my builds I don’t get any .module files. I executed the task generateMetadataFileForMavenPublication directly and got the error message:
Maven publication 'maven' isn't attached to a component. Gradle metadata only supports publications with software components (e.g. from component.java)
Which is true, since it is a iOS Project with a custom Xcode-Plugin.
What are the steps necessary to produce and consume Gradle Metadata for Non-Java-Projects?
Gradle Module Metadata only makes sense when it is attached to a published library in a repository.
Since Gradle supports consuming libraries with metadata only from two main repository types: Maven and Ivy, you need to pick one of those if you intend to benefit from library metadata.