Update to the latest API.

This commit is contained in:
Cedric Beust 2016-07-10 21:49:27 -07:00
parent bce3a32575
commit 48eb08357e
6 changed files with 7 additions and 3 deletions

View file

@ -4,7 +4,7 @@ import com.beust.kobalt.repos
val repos = repos()
val dev = true
val dev = false
val kobaltDependency = if (dev) "kobalt" else "kobalt-plugin-api"
val p = project {
@ -23,7 +23,7 @@ val p = project {
}
dependencies {
compile("com.beust:$kobaltDependency:0.725")
compile("com.beust:$kobaltDependency:0.842")
}
dependenciesTest {

Binary file not shown.

1
kobaltw Normal file
View file

@ -0,0 +1 @@
java -jar $(dirname $0)/kobalt/wrapper/kobalt-wrapper.jar $*

View file

@ -39,12 +39,14 @@ import com.beust.kobalt.misc.log
class ExecPlugin : BasePlugin(), ITaskContributor {
/*
fun main(argv: Array<String>) {
com.beust.kobalt.main(argv)
}
*/
// ITaskContributor
override fun tasksFor(context: KobaltContext): List<DynamicTask> {
override fun tasksFor(project: Project, context: KobaltContext): List<DynamicTask> {
return emptyList()
}

BIN
wrapper/kobalt-wrapper.jar Normal file

Binary file not shown.

View file

@ -0,0 +1 @@
kobalt.version=0.843