{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/19835","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19835/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19835/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19835/events","html_url":"https://github.com/elastic/elasticsearch/issues/19835","id":169643917,"number":19835,"title":"REST client pom.xml has runtime dependencies","user":{"login":"dadoonet","id":274222,"avatar_url":"https://avatars.githubusercontent.com/u/274222?v=3","gravatar_id":"","url":"https://api.github.com/users/dadoonet","html_url":"https://github.com/dadoonet","followers_url":"https://api.github.com/users/dadoonet/followers","following_url":"https://api.github.com/users/dadoonet/following{/other_user}","gists_url":"https://api.github.com/users/dadoonet/gists{/gist_id}","starred_url":"https://api.github.com/users/dadoonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadoonet/subscriptions","organizations_url":"https://api.github.com/users/dadoonet/orgs","repos_url":"https://api.github.com/users/dadoonet/repos","events_url":"https://api.github.com/users/dadoonet/events{/privacy}","received_events_url":"https://api.github.com/users/dadoonet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Java%20REST%20Client","name":":Java REST Client","color":"0e8a16"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/bug","name":"bug","color":"9e2c2c"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/build","name":"build","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-05T16:20:22Z","updated_at":"2016-08-16T04:53:54Z","closed_at":"2016-08-16T04:53:54Z","body":"With alpha5-SNAPSHOT, here is an extract of the generated `pom.xml`. See https://oss.sonatype.org/content/repositories/snapshots/org/elasticsearch/client/rest/5.0.0-alpha5-SNAPSHOT/rest-5.0.0-alpha5-20160805.100826-168.pom\r\n\r\n```xml\r\n<dependency>\r\n  <groupId>org.apache.httpcomponents</groupId>\r\n  <artifactId>httpcore</artifactId>\r\n  <version>4.4.5</version>\r\n  <scope>runtime</scope>\r\n</dependency>\r\n<dependency>\r\n  <groupId>org.apache.httpcomponents</groupId>\r\n  <artifactId>httpasyncclient</artifactId>\r\n  <version>4.1.2</version>\r\n  <scope>runtime</scope>\r\n</dependency>\r\n```\r\n\r\nWhich basically means that you can't use OOTB the apache classes:\r\n\r\n```java\r\nRestClient restClient = RestClient.builder(\r\n        new HttpHost(\"http\", \"localhost\", 9200),\r\n        new HttpHost(\"http\", \"localhost\", 9201)).build();\r\n```\r\n\r\nThis won't compile.\r\n\r\nNote that it was working well with alpha4. I did not try a \"final\" released version of alpha5 though.\r\n\r\n"}}
{"actor":{"display_login":"rjernst"}}