[BUILD-201] Expose parsed version properties for project.version and javaVersion Created: 16/Mar/15  Updated: 07/May/15  Resolved: 16/Mar/15

Status: Closed
Project: Build
Component/s: None
Affects Version/s: None
Fix Version/s: POMs 31

Type: New Feature Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by BUILD-198 Use Animal Sniffer to make sure we do... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

This is useful to configure other plugins or resource filtering.
See http://mojo.codehaus.org/build-helper-maven-plugin/parse-version-mojo.html



 Comments   
Comment by Magnolia International [ 04/May/15 ]

pmundt that's completely unrelated; the new feature makes parsedVersion and javaVersion available as "parsed versions", e.g you can do javaVersion.major or parsedVersion.major to get 1 and 5, respectively. See example use in BUILD-198's patch which configures animal sniffer like so:

              <signature>
                <groupId>org.codehaus.mojo.signature</groupId>
                <artifactId>java${javaVersion.majorVersion}${javaVersion.minorVersion}</artifactId>
                <version>1.0</version>
              </signature>
Generated at Sun Feb 11 23:39:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.