NoClassDefFoundError HttpAsyncResponseConsumer

I believe this is the same problem as

You can work around it by adding the http client's dependencies to your POM. In gradle they look like:

  compile "org.apache.httpcomponents:httpclient:4.5.2"
  compile "org.apache.httpcomponents:httpcore:4.4.5"
  compile "org.apache.httpcomponents:httpasyncclient:4.1.2"
  compile "org.apache.httpcomponents:httpcore-nio:4.4.5"
  compile "commons-codec:commons-codec:1.10"
  compile "commons-logging:commons-logging:1.1.3"

I won't try to translate that to maven because I can't test it locally at this point but it should be fairly trivial. I'll update the issue I linked above to make it clear that this is also happening for the http client.