diff --git a/kobalt/src/Build.kt b/kobalt/src/Build.kt index dc5ea17..91b269a 100644 --- a/kobalt/src/Build.kt +++ b/kobalt/src/Build.kt @@ -17,7 +17,7 @@ val project = project { name = "kobalt-line-count" group = "com.beust.kobalt" artifactId = name - version = "0.19" + version = "0.6" dependencies { compile("com.beust:kobalt-plugin-api:") diff --git a/src/main/kotlin/com/beust/kobalt/plugin/linecount/LineCountPlugin.kt b/src/main/kotlin/com/beust/kobalt/plugin/linecount/LineCountPlugin.kt index 2f8acf6..ecb9d92 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/linecount/LineCountPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/linecount/LineCountPlugin.kt @@ -14,10 +14,17 @@ import java.nio.file.attribute.BasicFileAttributes public class LineCountPlugin : BasePlugin(), ITaskContributor { // ITaskContributor - override fun tasksFor(context: KobaltContext) = listOf( - DynamicTask(this, "dynamicTask", "Dynamic task", runBefore = listOf("compile"), closure = { - TaskResult() - }) + override fun tasksFor(project: Project, context: KobaltContext) = listOf( + DynamicTask(this, + "dynamicTask", + "Dynamic task", + "other", + project, + runBefore = listOf("compile"), + closure = { + TaskResult() + } + ) ) companion object {