Skip to content

Commit

Permalink
added the ability to set version in non interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
msavitskiy committed Oct 21, 2016
1 parent d55dc26 commit e48f02e
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ public class GitFlowReleaseStartMojo extends AbstractGitFlowMojo {
@Parameter(property = "sameBranchName", defaultValue = "false")
private boolean sameBranchName = false;

/**
* Release version.
* <br/>
*
* Note: Work only in non interactive mode.
*
* @since 1.3.1
*/
@Parameter(property = "releaseVersion", defaultValue = "")
private String releaseVersion = "";

/** {@inheritDoc} */
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
Expand Down Expand Up @@ -114,6 +125,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {
} catch (PrompterException e) {
getLog().error(e);
}
} else {
version = releaseVersion;
}

if (StringUtils.isBlank(version)) {
Expand Down

0 comments on commit e48f02e

Please sign in to comment.