1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-line-count.git synced 2025-04-26 03:27:11 -07:00

Merge branch 'master' of github.com:cbeust/kobalt-line-count

Conflicts:
	kobalt/src/Build.kt
	kobalt/wrapper/kobalt-wrapper.properties
	src/main/kotlin/com/beust/kobalt/plugin/linecount/LineCountPlugin.kt
	src/main/resources/META-INF/kobalt-plugin.xml
This commit is contained in:
Cedric Beust 2016-01-06 23:46:44 -08:00
commit 1fc9316900
8 changed files with 15 additions and 10 deletions

View file

@ -13,12 +13,12 @@ import java.nio.file.attribute.BasicFileAttributes
//}
public class LineCountPlugin : BasePlugin(), ITaskContributor {
override fun tasksFor(context: KobaltContext)
= listOf(DynamicTask(this, "dynamicTask", "Dynamic task", runBefore = listOf("compile"),
closure = { project ->
println("Running dynamic task")
// ITaskContributor
override fun tasksFor(context: KobaltContext) = listOf(
DynamicTask(this, "dynamicTask", "Dynamic task", runBefore = listOf("compile"), closure = {
TaskResult()
}))
})
)
companion object {
const val NAME : String = "kobalt-line-count"