Skip to content

Initial release

Compare
Choose a tag to compare
@britter britter released this 05 Apr 16:50
0.1.0
b7ea07d

I'm proud to announce the initial release of the maven-plugin-development plugin 🎉
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.

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

Once applied, the plugin adds a MavenPluginDevelopmentExtension with name mavenPlugin to the project.
All meta data for the plugin, e.g. groupId, artifactId, description is extracted from the corresponding project properties.
The only setting that users might want to configure is generateHelpMojo which is false be default, meaning not help mojo will be generated.

Gradle Groovy DSL

plugins {
  id 'de.benediktritter.maven-plugin-development' version '0.1.0'
}

mavenPlugin {
  // optional, false by default
  generateHelpMojo = true
}

Gradle Kotlin DSL

plugins {
  id("de.benediktritter.maven-plugin-development") version "0.1.0"
}

mavenPlugin {
  // optional, false by default
  generateHelpMojo.set(true)
}