Added 'next' versions from parsed version
-----------------------------------------
Key: MBUILDHELPER-22
URL: http://jira.codehaus.org/browse/MBUILDHELPER-22
Project: Maven 2.x Build Helper Plugin
Issue Type: New Feature
Reporter: Brian Relph
Attachments: nextVersions.patch
I would like an enhancement to the parse-version goal to add additional
properties for the 'next' versions:
props.setProperty( propertyPrefix + ".nextMajorVersion", Integer.toString(
artifactVersion.getMajorVersion() + 1 ) );
props.setProperty( propertyPrefix + ".nextMinorVersion", Integer.toString(
artifactVersion.getMinorVersion() + 1 ) );
props.setProperty( propertyPrefix + ".nextIncrementalVersion",
Integer.toString(
artifactVersion.getIncrementalVersion() + 1 ) );
This will help me configure the maven-release-plugin to automatically detect
the release version and next development version:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
<configuration>
<releaseVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.RELEASE</releaseVersion>
<developmentVersion>${parsedVersion.majorVersion}.${parsedVersion.nextMinorVersion}.${parsedVersion.incrementalVersion}.BUILD-SNAPSHOT</developmentVersion>
</configuration>
</plugin>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email