title: How to add org.apache.http.legacy into sbt
body: <p>I am using apache httpclient and it could not find</p>
  
  <pre><code>import org.apache.http.impl.client.HttpClients;
  </code></pre>
  
  <p>quick search on google lead me to org.apache.http.legacy but I couldnt find group, artifact and revision of org.apache.http.legacy</p>
  
  <p>What are they and how do I add that dependency into my build.sbt file? Total stacktrace is</p>
  
  <pre><code>[error] /Users/vangapellisanthosh/Development/coupon-engine-play/app/utils/LocalUtils.java:13: cannot find symbol
  [error]   symbol:   class HttpClients
  [error]   location: package org.apache.http.impl.client
  [error] import org.apache.http.impl.client.HttpClients;
  [error] /Users/vangapellisanthosh/Development/coupon-engine-play/app/utils/LocalUtils.java:66: cannot find symbol
  [error]   symbol:   variable HttpClients
  [error]   location: class utils.LocalUtils
  [error]         HttpClient httpclient = HttpClients.createDefault();
  [info] /Users/vangapellisanthosh/Development/coupon-engine-play/app/controllers/CouponsController.java: /Users/vangapellisanthosh/Development/coupon-engine-play/app/controllers/CouponsController.java uses or overrides a deprecated API.
  [info] /Users/vangapellisanthosh/Development/coupon-engine-play/app/controllers/CouponsController.java: Recompile with -Xlint:deprecation for details.
  [error] (compile:compileIncremental) javac returned nonzero exit code
  [info] Compiling 6 Scala sources and 18 Java sources to /Users/vangapellisanthosh/Development/coupon-engine-play/target/scala-2.11/classes...
  [error] /Users/vangapellisanthosh/Development/coupon-engine-play/app/utils/LocalUtils.java:13: cannot find symbol
  [error]   symbol:   class HttpClients
  [error]   location: package org.apache.http.impl.client
  [error] import org.apache.http.impl.client.HttpClients;
  [error] /Users/vangapellisanthosh/Development/coupon-engine-play/app/utils/LocalUtils.java:66: cannot find symbol
  [error]   symbol:   variable HttpClients
  [error]   location: class utils.LocalUtils
  [error]         HttpClient httpclient = HttpClients.createDefault();
  [info] /Users/vangapellisanthosh/Development/coupon-engine-play/app/controllers/CouponsController.java: /Users/vangapellisanthosh/Development/coupon-engine-play/app/controllers/CouponsController.java uses or overrides a deprecated API.
  [info] /Users/vangapellisanthosh/Development/coupon-engine-play/app/controllers/CouponsController.java: Recompile with -Xlint:deprecation for details.
  [error] (compile:compileIncremental) javac returned nonzero exit code
  [error] application - 
  </code></pre>
  
  <p>My code is</p>
  
  <pre><code>HttpClient httpclient = HttpClients.createDefault();
  HttpPost httppost = new HttpPost(URL);
  httppost.addHeader(API_KEY, X_API_KEY);
  // Request parameters and other properties.
  List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;(2);
  params.add(new BasicNameValuePair(GRANT_TYPE, "password"));
  params.add(new BasicNameValuePair(USERNAME, _USERNAME));
  params.add(new BasicNameValuePair(PASSWORD, O_PASSWORD));
  httppost.setEntity(new UrlEncodedFormEntity(params, "UTF-8"));
  
  HttpResponse response = httpclient.execute(httppost);
  HttpEntity entity = response.getEntity();
  
  if (entity != null) {
      InputStream instream = entity.getContent();
      try {
          System.out.println(instream);
      } finally {
          instream.close();
      }
  }
  </code></pre>