Skip to content

britter/maven-plugin-development

Repository files navigation

Maven Plugin Development Gradle Plugin

Build Status Gradle Plugin Portal

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 5.5.1 or later.

Features

  • 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

Usage

Please see the plugin documentation. For a self-contained example please the example folder.

How to release

  • 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

Contribution policy

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.

License

This code is open source software licensed under the Apache 2.0 License.