mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Not used.
This commit is contained in:
parent
e69a0f0136
commit
13b8f261f8
1 changed files with 2 additions and 3 deletions
|
@ -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()}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue