Class JReleaserTemplateEvalMojo

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

@Mojo(name="template-eval") public class JReleaserTemplateEvalMojo extends org.apache.maven.plugin.AbstractMojo
Evaluate a template or templates.
Since:
1.5.0
Author:
Andres Almiray
  • Field Details

    • templateFile

      @Parameter(property="jreleaser.template.input.file") protected File templateFile
      An input template file.
    • inputDirectory

      @Parameter(property="jreleaser.template.input.directory") protected File inputDirectory
      A directory with input templates.
    • targetDirectory

      @Parameter(property="jreleaser.template.target.directory", required=true) protected File targetDirectory
      Directory where evaluated template(s) will be placed.
    • 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

    • JReleaserTemplateEvalMojo

      public JReleaserTemplateEvalMojo()
  • 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
    • getMode

      protected org.jreleaser.model.api.JReleaserContext.Mode getMode()
    • 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)
    • collectEntries

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

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