title: Unable to create a JiraRestClient
body: <p>I am trying to create a JiraRestClient using Basic authentication.</p>
  
  <pre><code>JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
  URI jiraServerUri = getJiraUri();
  JiraRestClient restClient =  factory
   .createWithBasicHttpAuthentication(jiraServerUri, USERNAME, PASSWORD);
  </code></pre>
  
  <p>However, I am getting the below exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: com.atlassian.fugue.Option.fold(Lcom/google/common/base/Supplier;Lcom/google/common/base/Function;)Ljava/lang/Object;
      at com.atlassian.httpclient.apache.httpcomponents.proxy.ProxyConfigFactory.getProxyHost(ProxyConfigFactory.java:16)
      at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.&lt;init&gt;(ApacheAsyncHttpClient.java:211)
      at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.&lt;init&gt;(ApacheAsyncHttpClient.java:123)
      at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.doCreate(DefaultHttpClientFactory.java:68)
      at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.create(DefaultHttpClientFactory.java:35)
      at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:63)
      at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
      at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
      at com.jira.JiraClient.getJiraRestClient(JiraClient.java:37)
      at com.jira.JiraClient.getIssue(JiraClient.java:25)
      at com.jira.JiraClient.main(JiraClient.java:20)
  </code></pre>
  
  <p>It seems that some runtime dependency is missing. But not sure which one.</p>
  
  <p>Here is the snippet from my pom:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.atlassian.jira&lt;/groupId&gt;
          &lt;artifactId&gt;jira-rest-java-client-core&lt;/artifactId&gt;
          &lt;version&gt;4.0.0&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.atlassian.fugue&lt;/groupId&gt;
          &lt;artifactId&gt;fugue&lt;/artifactId&gt;
          &lt;version&gt;3.0.0-m007&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-simple&lt;/artifactId&gt;
          &lt;version&gt;1.6.4&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;atlassian-public&lt;/id&gt;
          &lt;url&gt;https://packages.atlassian.com/maven/repository/public&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>What am I missing here?</p>