I’m writing a custom Gradle plugin to replace an existing Maven plugin. I’m comparing the results from the Maven build with the corresponding Gradle build. About the only difference left is that the resulting Maven jar file has a “META-INF/maven” folder, with generated “pom.xml” and “pom.properties” files (and intervening folders for group & artifact).
I know this is related to the “maven” and “maven-publish” plugins, but I could use a succinct explanation of how (and whether) I should get these files into the resulting jar, using as many defaults as possible.
I’ve looked at the “Maven” and “Maven Publish” chapters in the User Guide, but I could use more contextual background on this problem.