zalando/tokens

Consider switching 'httpclient' dependency

jbellmann opened this issue · 6 comments

... to be a compile/runtime dependency.

To avoid issues like #60 .

Another point would be to maybe force the user to have latest to be up to date. To hopefully avoid issues like #52 .

but what about #14 ?
This PR /feature would be completely obsolete then.

No, not true, imo. The #14 brings in all the abstractions needed to drop the default-implementation (provided by us) and plug in a different one (maybe async, as mentioned in #14). That's fine.

Here we talk about 'shipping' the dependency (library) needed by our 'default-implementation'. Users are still able to completely put in their own 'HttpProvider' implementation (maybe with 'httpclient-async' or 'ok-http').
But we could improve the 'out-of-the-box' experience for 'tokens' with default-implementation working without putting the user in responsibility to care about adding dependencies we already know about.
Excluding this library from users project should be simple for an developer.

Ok, I agree. So if someone does not want to use our implementation, they can simply exclude Apache httpclient from their dependencies configuration 👍
Then it makes sense to add it as compile time dependency.

Nice, will create the PR for this and let you know.

Fixed with 0.10.0