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

Not used.

This commit is contained in:
Cedric Beust 2015-10-28 20:08:06 -07:00
parent e69a0f0136
commit 13b8f261f8

View file

@ -1,13 +1,12 @@
package com.beust.kobalt.misc package com.beust.kobalt.misc
import com.beust.kobalt.maven.Http
import javax.inject.Inject
import java.io.File import java.io.File
import javax.inject.Inject
/** /**
* Update Kobalt to the latest version. * Update Kobalt to the latest version.
*/ */
public class UpdateKobalt @Inject constructor(val http: Http, val github: GithubApi) { public class UpdateKobalt @Inject constructor(val github: GithubApi) {
fun updateKobalt() { fun updateKobalt() {
val newVersion = github.latestKobaltVersion val newVersion = github.latestKobaltVersion
KFiles.saveFile(File("kobalt/wrapper/kobalt-wrapper.properties"), "kobalt.version=${newVersion.get()}") KFiles.saveFile(File("kobalt/wrapper/kobalt-wrapper.properties"), "kobalt.version=${newVersion.get()}")