-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[MNG-8146] Drop commons-lang #1564
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,15 @@ public void testVersionParsing() { | |
| checkVersionParsing("1.2.3-200705301630", 1, 2, 3, 0, "200705301630"); | ||
| } | ||
|
|
||
| public void testVersionParsingNot09() { | ||
| String ver = "१.२.३"; | ||
| assertTrue(Character.isDigit(ver.charAt(0))); | ||
| assertTrue(Character.isDigit(ver.charAt(2))); | ||
| assertTrue(Character.isDigit(ver.charAt(4))); | ||
| ArtifactVersion version = newArtifactVersion(ver); | ||
| assertEquals(ver, version.getQualifier()); | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hold on, shouldn't this fail?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, as these are not numbers anymore, they are qualifiers (otherwise it would go into major, minor...)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. man, I want
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but we must carry thru same change on Resolver as well... |
||
|
|
||
| public void testVersionComparing() { | ||
| assertVersionEqual("1", "1"); | ||
| assertVersionOlder("1", "2"); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,7 +129,6 @@ under the License. | |
| <classWorldsVersion>2.8.0</classWorldsVersion> | ||
| <commonsCliVersion>1.8.0</commonsCliVersion> | ||
| <commonsIoVersion>2.16.1</commonsIoVersion> | ||
| <commonsLangVersion>3.14.0</commonsLangVersion> | ||
| <junitVersion>4.13.2</junitVersion> | ||
| <hamcrestVersion>2.2</hamcrestVersion> | ||
| <mockitoVersion>4.11.0</mockitoVersion> | ||
|
|
@@ -442,16 +441,6 @@ under the License. | |
| <groupId>commons-cli</groupId> | ||
| <artifactId>commons-cli</artifactId> | ||
| <version>${commonsCliVersion}</version> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>commons-lang</groupId> | ||
| <artifactId>commons-lang</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>commons-logging</groupId> | ||
| <artifactId>commons-logging</artifactId> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you remove the commons-logging exclusion? This is unrelated.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because commons-cli does not depend on any of these, this seems legacy that was never removed? Commons cli deps are only these:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Commons Logging has been removed as a dep? |
||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>commons-io</groupId> | ||
|
|
@@ -463,11 +452,6 @@ under the License. | |
| <artifactId>commons-jxpath</artifactId> | ||
| <version>${jxpathVersion}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.commons</groupId> | ||
| <artifactId>commons-lang3</artifactId> | ||
| <version>${commonsLangVersion}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.codehaus.plexus</groupId> | ||
| <artifactId>plexus-sec-dispatcher</artifactId> | ||
|
|
||
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.
Good!