This plugin aims to fill the tiny gap for people who need to create an Apache Maven plugin from a Gradle build. To do this the plugin wraps around the Maven Plugin Tools API and feeds it with the right inputs from the Gradle build.
Compatible with Gradle 7.x or later.
- Automatic generation of a maven plugin descriptor containing all mojos in the selected source set (by default the plugin looks for mojo implementations in the main source set)
- Support for annotation and JavaDoc tag based mojo implementations
- Optional generation of a help mojo implementation
Please see the plugin documentation. For a self-contained example please the example folder.
- Pull latest changes
- Set the version to be released in
gradle.properties
- Set the release date for the version to be released in
release-history.adoc
- Commit and tag the change
- Run
./gradlew release -Prelease
- Update the version in
gradle.properties
to the next development version - Update the version in
sample/gradle-producer-build/build.gradle.kts
to the released version - Commit the change
- Push changes and release tag
Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.
This code is open source software licensed under the Apache 2.0 License.