-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRELEASE-1109] Support CI friendly versions #198
Conversation
...se-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me.
AbstractRewritePomsPhase.extractPropertyFromExpression(versionElement.getTextNormalize()); | ||
Properties properties = getProperties(); | ||
if (properties != null) { | ||
properties.computeIfPresent(ciFriendlyPropertyName, (k, v) -> version); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unimplemented (stub) method call, it does nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Regular expression pattern matching Maven expressions (i.e. references to Maven properties). | ||
* The first group selects the property name the expression refers to. | ||
*/ | ||
private static final Pattern EXPRESSION_PATTERN = Pattern.compile("\\$\\{(.+)\\}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would fail in case of <version>${revision}${sha1}${changelist}</version>
, looks like the revision
the only property from CI Friendly is supported right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After all, this isn't fine anymore. This has introduced anothe regression: https://issues.apache.org/jira/browse/MRELEASE-1154 |
No description provided.