Skip to content

IVY-1614, IVY-1655: translate dynamic ranges to Maven-compatible formats#126

Open
eric-milles wants to merge 2 commits into
apache:masterfrom
eric-milles:IVY-1655
Open

IVY-1614, IVY-1655: translate dynamic ranges to Maven-compatible formats#126
eric-milles wants to merge 2 commits into
apache:masterfrom
eric-milles:IVY-1655

Conversation

@eric-milles

Copy link
Copy Markdown
Member

Maven does not support versions like ]1.0,2.0] and [1.0,2.0[ and 1.+. Add simple translation to Maven-compatible values.

</exclusions>
</dependency>
</dependencies>
</project>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's changes in this file?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line endings; there are carriage returns

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove those changes from this PR? They are not relevant for the fix.

private static String translate(String version) {
version = version.trim();
if (version.endsWith("+")) { // 1+, 1.+, 1.2+, 1.2.+
version = version.replaceFirst("\\.?\\s*\\+$", ""); // drop dot-plus

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the \\s* ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"1. +" -- spaces

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Ivy supports that ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just being careful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants