1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fix okio dependencies.

This commit is contained in:
Cedric Beust 2016-03-12 01:22:26 +04:00
parent 65eb3f9261
commit 4a2c136808
5 changed files with 19 additions and 11 deletions

View file

@ -7,8 +7,8 @@
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="kobalt (Compile)" level="project" />
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
<orderEntry type="inheritedJdk" />
<orderEntry type="library" name="kobalt-plugin-api (Compile)" level="project" />
<orderEntry type="library" scope="TEST" name="kobalt-plugin-api (Test)" level="project" />
<orderEntry type="inheritedJdk" />
</component>
</module>

View file

@ -5,6 +5,7 @@ import com.beust.kobalt.internal.DocUrl
import com.beust.kobalt.maven.Http
import com.google.gson.annotations.SerializedName
import com.google.inject.Inject
import okhttp3.OkHttpClient
import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
@ -56,6 +57,7 @@ class GithubApi2 @Inject constructor(
// Read only Api
//
private val service = Retrofit.Builder()
.client(OkHttpClient())
.baseUrl("https://api.github.com")
.addConverterFactory(GsonConverterFactory.create())
.build()