dispatch/dispatch — Issue #59: dispatch-json has an unnecessary dependency on httpclient
Author: Gekkio
Created: 2011-11-10 07:49:39+00:00
State: open

The json project uses the shared settings in the build, which defines httpclient as a dependency.
However, the json project does not need any dependencies in the compile scope.

This causes slight nastiness in SBT-based library projects that depend on dispatch-json. I can of course myself exclude the httpclient dependency, but SBT does not add excludes-sections in generated POMs, so my project's POM will have a normal dependency to dispatch-json without excludes.

This means that any users of my library will get httpclient (and its transitive dependencies, for example commons-logging) unless they explicitly exclude it. And there's nothing I can do it as a library author :(

An example of a common library that is affected is sjson (since version 0.15). So, for example if the Akka guys decide to upgrade to sjson 0.15, all Akka users will transitively be affected as well.