Class PushMojo

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

@Mojo(name="push", defaultPhase=DEPLOY) public class PushMojo extends AbstractGemMojo
goal to push a given gem or a gem artifact to rubygems.org via the command "gem push {gem}"
  • Field Details

    • skip

      @Parameter(property="push.skip", defaultValue="false") protected boolean skip
      skip the pushng the gem
    • pushArgs

      @Parameter(property="push.args") protected String pushArgs
      arguments for the ruby script given through file parameter.
    • gem

      @Parameter(property="gem") protected File gem
      arguments for the ruby script given through file parameter.
    • repoSession

      @Parameter(defaultValue="${repositorySystemSession}", readonly=true) protected Object repoSession
  • Constructor Details

    • PushMojo

      public PushMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractGemMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • executeWithGems

      public void executeWithGems() throws org.apache.maven.plugin.MojoExecutionException, ScriptException, IOException, org.apache.maven.plugin.MojoFailureException, GemException
      Specified by:
      executeWithGems in class AbstractGemMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      ScriptException
      IOException
      org.apache.maven.plugin.MojoFailureException
      GemException