mirror of
https://github.com/ethauvin/kobalt-line-count.git
synced 2025-04-25 19:17: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:
commit
1fc9316900
8 changed files with 15 additions and 10 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue