mirror of
https://github.com/ethauvin/kobalt-line-count.git
synced 2025-04-25 19:17:11 -07:00
Update to newer API.
This commit is contained in:
parent
15a5402b73
commit
3f37f59ee6
2 changed files with 12 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue