Skip to content

Commit

Permalink
add releaseVersion parameter to the release goal
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-m committed Oct 25, 2016
1 parent 4102d44 commit 65a2dff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ public class GitFlowReleaseMojo extends AbstractGitFlowMojo {
@Parameter(property = "releaseMergeNoFF", defaultValue = "true")
private boolean releaseMergeNoFF = true;

/**
* Release version to use instead of the default next release version 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 @@ -139,6 +148,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {
} catch (PrompterException e) {
getLog().error(e);
}
} else {
version = releaseVersion;
}

if (StringUtils.isBlank(version)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ public class GitFlowReleaseStartMojo extends AbstractGitFlowMojo {
private boolean sameBranchName = false;

/**
* Release version.
* <br/>
*
* Note: Work only in non interactive mode.
*
* Release version to use instead of the default next release version in non
* interactive mode.
*
* @since 1.3.1
*/
@Parameter(property = "releaseVersion", defaultValue = "")
Expand Down

0 comments on commit 65a2dff

Please sign in to comment.