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

Migrating to Retrofit2.

This commit is contained in:
Cedric Beust 2016-03-11 22:53:49 +04:00
parent 238a4df95b
commit 31d25a80c4
13 changed files with 166 additions and 27 deletions

View file

@ -58,7 +58,7 @@ private class Main @Inject constructor(
val files: KFiles,
val executors: KobaltExecutors,
val checkVersions: CheckVersions,
val github: GithubApi,
val github: GithubApi2,
val updateKobalt: UpdateKobalt,
val client: KobaltClient,
val server: KobaltServer,

View file

@ -14,7 +14,7 @@ import javax.inject.Inject
/**
* Update Kobalt to the latest version.
*/
class UpdateKobalt @Inject constructor(val github: GithubApi, val wrapperProperties: KobaltWrapperProperties) {
class UpdateKobalt @Inject constructor(val github: GithubApi2, val wrapperProperties: KobaltWrapperProperties) {
fun updateKobalt() {
val newVersion = github.latestKobaltVersion
wrapperProperties.create(newVersion.get())

View file

@ -16,7 +16,7 @@ import javax.inject.Singleton
@Suppress("VARIABLE_WITH_REDUNDANT_INITIALIZER")
@Singleton
public class PublishPlugin @Inject constructor(val files: KFiles, val factory: PomGenerator.IFactory,
val bintrayFactory: BintrayApi.IFactory, val github: GithubApi, val localProperties: LocalProperties)
val bintrayFactory: BintrayApi.IFactory, val github: GithubApi2, val localProperties: LocalProperties)
: BasePlugin() {
override val name = PLUGIN_NAME

View file

@ -1 +1 @@
kobalt.version=0.666
kobalt.version=0.667