[SERVER-1773] Add :qualifier support to lein-release-4digit-version plugin Created: 2017/04/17  Updated: 2017/06/28  Resolved: 2017/05/02

Status: Closed
Project: Puppet Server
Component/s: None
Affects Version/s: None
Fix Version/s: SERVER 5.0.0

Type: Task Priority: Normal
Reporter: Jeremy Barlow Assignee: Jeremy Barlow
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
blocks SERVER-1774 Add CI for jruby-deps project Closed
relates to SERVER-1630 Support user configuration of JRuby 1... Closed
Epic Link: Upgrade Puppet Server to JRuby 9k
Team: Systems Engineering
Sub-team: Server
Story Points: 2
Sprint: Server 2017-04-19, Server 2017-05-03
Release Notes: Not Needed
QA Risk Assessment: Needs Assessment


For the work to enable JRuby 1.7 vs. 9k support for Puppet Server, we're intending to maintain a specific Maven artifact (via a leiningen project) which rolls up related JRuby dependencies for each version - e.g., for jruby-core and jruby-stdlib. The Maven artifact's version number should match up with the corresponding JRuby version. We should also have the ability to roll out more than one Maven artifact per JRuby version - e.g., in case we messed up the dependency info in the original artifact and need to update it.

For JRuby 9k, the base version number already has 4 parts. With the lein-release-4digit-version plugin, we have the ability to bump release version numbers in the project.clj file via leiningen. Unlike the standard "3-part" lein-release plugin, the lein-release-4digit-version plugin, however, does not have the ability to bump the "qualifier" portion of a version. The work for this ticket would involve adding support to the lein-release-4digit-version plugin for bumping the qualifier portion of a project version.

For example, using a "3-part version number" with a value of "1.7.26-1-SNAPSHOT" (where the "-1" is the qualifier version), if I run the following command:

lein change version leiningen.release/bump-version qualifier

... the value is bumped to "1.7.26-2-SNAPSHOT".

If I try to run the same 'lein change' command with a "4-part" version number that has a qualifier in the project.clj, e.g.,, I get an error:

Unrecognized version string:

Comment by Kenn Hussey [ 2017/05/15 ]

Jeremy Barlow please provide release notes for this issue, if applicable.

Generated at Tue Aug 11 00:02:49 PDT 2020 using Jira 8.5.2#805002-sha1:a66f9354b9e12ac788984e5d84669c903a370049.