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:
parent
238a4df95b
commit
31d25a80c4
13 changed files with 166 additions and 27 deletions
|
@ -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,
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
kobalt.version=0.666
|
||||
kobalt.version=0.667
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue