Class JReleaserReleaseMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jreleaser.maven.plugin.JReleaserReleaseMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="release") public class JReleaserReleaseMojo extends org.apache.maven.plugin.AbstractMojo
Create or update a release.
Since:
0.1.0
Author:
Andres Almiray
  • Field Details

    • project

      @Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
      The project whose model will be checked.
    • jreleaser

      @Parameter protected org.jreleaser.model.internal.JReleaserModel jreleaser
    • outputDirectory

      @Parameter(property="jreleaser.output.directory", defaultValue="${project.build.directory}/jreleaser") protected File outputDirectory
    • configFile

      @Parameter(property="jreleaser.config.file") protected File configFile
    • dryrun

      @Parameter(property="jreleaser.dry.run") protected Boolean dryrun
      Skips remote operations.
    • gitRootSearch

      @Parameter(property="jreleaser.git.root.search") protected Boolean gitRootSearch
      Searches for the Git root.
    • strict

      @Parameter(property="jreleaser.strict") protected Boolean strict
      Enable strict mode.
  • Constructor Details

    • JReleaserReleaseMojo

      public JReleaserReleaseMojo()
  • Method Details

    • doExecute

      protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • isSkip

      protected boolean isSkip()
    • collectSelectedPlatforms

      protected List<String> collectSelectedPlatforms()
    • collectRejectedPlatforms

      protected List<String> collectRejectedPlatforms()
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • isQuiet

      protected boolean isQuiet()
    • getLogger

      protected org.jreleaser.logging.JReleaserLogger getLogger() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • createTracer

      protected PrintWriter createTracer() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • convertModel

      protected org.jreleaser.model.internal.JReleaserModel convertModel()
    • readModel

      protected org.jreleaser.model.internal.JReleaserModel readModel(org.jreleaser.logging.JReleaserLogger logger)
    • createContext

      protected org.jreleaser.model.internal.JReleaserContext createContext() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • resolveBoolean

      protected boolean resolveBoolean(String key, Boolean value)
    • resolveCollection

      protected List<String> resolveCollection(String key, List<String> values)
    • resolveConfigurer

      protected org.jreleaser.model.internal.JReleaserContext.Configurer resolveConfigurer(File configFile)
    • getMode

      protected org.jreleaser.model.api.JReleaserContext.Mode getMode()
    • collectEntries

      protected List<String> collectEntries(String[] input)
    • collectEntries

      protected List<String> collectEntries(String[] input, boolean lowerCase)