mkolesnikov commented on code in PR #198:
URL: https://github.com/apache/maven-release/pull/198#discussion_r1409822004


##########
maven-release-manager/src/main/java/org/apache/maven/shared/release/transform/jdom2/JDomModel.java:
##########
@@ -189,7 +192,17 @@ public void setVersion(String version) {
                 project.addContent(index + 2, versionElement);
             }
         } else {
-            JDomUtils.rewriteValue(versionElement, version);
+            if 
(AbstractRewritePomsPhase.isCiFriendlyVersion(versionElement.getTextNormalize()))
 {
+                // try to rewrite property if CI friendly expression is used
+                String ciFriendlyPropertyName =
+                        
AbstractRewritePomsPhase.extractPropertyFromExpression(versionElement.getTextNormalize());
+                Properties properties = getProperties();
+                if (properties != null) {
+                    properties.computeIfPresent(ciFriendlyPropertyName, (k, v) 
-> version);

Review Comment:
   Unimplemented (stub) method call, it does nothing.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to