Apache commons lang and lang3

5,503 views
Skip to first unread message

Zac Jacobson

unread,
Jun 10, 2013, 2:36:21 PM6/10/13
to ivyro...@googlegroups.com
The package name for the module org.apache.commons commons-lang is different between 2.X and 3.X - it's supposed to be possible for both packages to be on the classpath at the same time

Note that Lang 3.0 (and subsequent versions) use a different package (org.apache.commons.lang3) than the previous versions (org.apache.commons.lang), allowing it to be used at the same time as an earlier version.

In Maven, the artifact ID for 3.x is "commons-lang3" - is it possible to mirror that approach in ivyroundup?

Archie Cobbs

unread,
Jun 10, 2013, 2:57:09 PM6/10/13
to ivyro...@googlegroups.com
Good idea.

Committed in r2708.

-Archie

--
You received this message because you are subscribed to the Google Groups "ivyroundup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ivyroundup+...@googlegroups.com.
To post to this group, send email to ivyro...@googlegroups.com.
Visit this group at http://groups.google.com/group/ivyroundup?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Archie L. Cobbs

Zac Jacobson

unread,
Jun 10, 2013, 4:03:20 PM6/10/13
to ivyro...@googlegroups.com
Awesome, thanks!

Zac Jacobson

unread,
Jun 13, 2013, 11:29:42 PM6/13/13
to ivyro...@googlegroups.com
Is it worth putting a patch together to update all the commons-lang dependencies to commons-lang3, or would that cause more problems than it solves?

Zac Jacobson

unread,
Jun 13, 2013, 11:31:24 PM6/13/13
to ivyro...@googlegroups.com
Not ALL, obviously. But the ones that depend on [3.0,)

Archie Cobbs

unread,
Jun 14, 2013, 10:40:11 AM6/14/13
to ivyro...@googlegroups.com
Well, you're right to point out that it's an issue we have to tackle either now or later.

Might as well be now... thanks for volunteering :)

-Archie

On Thu, Jun 13, 2013 at 10:29 PM, Zac Jacobson <pie...@gmail.com> wrote:
Is it worth putting a patch together to update all the commons-lang dependencies to commons-lang3, or would that cause more problems than it solves?
--
You received this message because you are subscribed to the Google Groups "ivyroundup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ivyroundup+...@googlegroups.com.
To post to this group, send email to ivyro...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





--
Archie L. Cobbs

Zac Jacobson

unread,
Jun 14, 2013, 4:29:59 PM6/14/13
to ivyro...@googlegroups.com
Do you prefer a patch, or a shell/python script to recursively step through things and make the changes?
Should all versions be updated, or just latest revision?

Afterwards, would people have to wipe out their /.iv2/cache directories to account for changing checksums for ivy.xml files? Is that okay?

Archie Cobbs

unread,
Jun 14, 2013, 4:53:50 PM6/14/13
to ivyro...@googlegroups.com
On Fri, Jun 14, 2013 at 3:29 PM, Zac Jacobson <pie...@gmail.com> wrote:
Do you prefer a patch, or a shell/python script to recursively step through things and make the changes?

Just a patch is fine.. this will be a one-time thing.
 
Should all versions be updated, or just latest revision?

The conservative thing to do is update any <dependency> to commons-lang that has a lower revision bound of 3.x or higher.

Afterwards, would people have to wipe out their /.iv2/cache directories to account for changing checksums for ivy.xml files? Is that okay?

I don't think that will be necessary. This change will be backward-compatible in the near term so it doesn't matter if people are still caching the old ivy.xml versions. The JAR you end up with will be the same.

-Archie

--
Archie L. Cobbs

Zac Jacobson

unread,
Jun 15, 2013, 3:22:05 AM6/15/13
to ivyro...@googlegroups.com
I was surprised: there didn't seem to be many affected. patch attached.
commons-lang3-dep.diff.txt

Archie Cobbs

unread,
Jun 15, 2013, 10:47:18 AM6/15/13
to ivyro...@googlegroups.com
Thanks, patch applied in r2722.

-Archie

--
You received this message because you are subscribed to the Google Groups "ivyroundup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ivyroundup+...@googlegroups.com.
To post to this group, send email to ivyro...@googlegroups.com.
Visit this group at http://groups.google.com/group/ivyroundup.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Archie L. Cobbs
Reply all
Reply to author
Forward
0 new messages