Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency problems #191

Closed
yanickrochon opened this issue May 14, 2015 · 1 comment
Closed

Dependency problems #191

yanickrochon opened this issue May 14, 2015 · 1 comment

Comments

@yanickrochon
Copy link

The type com.squareup.okhttp.OkUrlFactory cannot be resolved. It is indirectly referenced from required .class files

I'm not sure how I can resolve this. My project is new, I'm not familiar with Maven, and I'm not sure what am I missing....

@yanickrochon
Copy link
Author

Alright, after reading OkHttp's website thoroughly, I read this :

The okhttp-urlconnection module implements the familiar java.net.HttpURLConnection API and the okhttp-apache module implements the Apache HttpClient API.

So, I tried adding okhttp-urlconnection to the pom.xml file and it worked. So, this is the basic dependency list to have to use github-api :

  <dependencies>
    <dependency>
        <groupId>org.kohsuke</groupId>
        <artifactId>github-api</artifactId>
        <version>1.68</version>
    </dependency>
    <dependency>
        <groupId>com.squareup.okio</groupId>
        <artifactId>okio</artifactId>
        <version>1.3.0</version>
    </dependency>
    <dependency>
        <groupId>com.squareup.okhttp</groupId>
        <artifactId>okhttp</artifactId>
        <version>2.3.0</version>
    </dependency>
    <dependency>
        <groupId>com.squareup.okhttp</groupId>
        <artifactId>okhttp-urlconnection</artifactId>
        <version>2.3.0</version>
    </dependency>
  </dependencies>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant