[rules-users] Optaplanner with Apache Commons Collections 4.0

Geoffrey De Smet ge0ffrey.spam at gmail.com
Fri Nov 29 03:53:28 EST 2013


On 27-11-13 22:12, jonathan.labin wrote:
> Apache Commons Collections 4.0 has been released and has some data structures
> that I'm interested in using in my application.
>
> To your knowledge can Optaplanner function with version 4.0 swapped in place
> of 3.2.1?
I am not of anyone that tried besides you.
If you want to be confident it's safe, do the following:

git clone optaplanner
cd optaplanner
gedit pom.xml
// in <dependencyManagement> overwrite the commons-collections 
dependency to 4.0 and save
mvn clean install
// runs all unit and integration tests in about 8 minutes (without the 
stress test that take 30 hours but don't cover more code)

If the build succeeds, its fine.

> I have tried this and not encountered any issues at build or run time but
> that of course doesn't mean they aren't there.
>
> Will the next release of Optaplanner leverage this more recent release of
> Collections?
Probably not in the next release. IIRC Hibernate, EAP 6, etc are still 
using commons-collections 3.x,
so it would be too early to jump to a new major release (a minor or 
hotfix release would be less trouble).
Sooner or later, we will upgrade though.

Side note: I am seriously considering of adding a guava dependency in 
optaplanner 6.1 and dump the commons-collections dependency altogether.
   https://issues.jboss.org/browse/PLANNER-209
Wdyt?

>
> Thanks,
>
> Jon
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Optaplanner-with-Apache-Commons-Collections-4-0-tp4026958.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list