mirror of
https://github.com/ethauvin/kobalt-line-count.git
synced 2025-04-24 18:57:11 -07:00
New Kobalt.findPlugin() API
This commit is contained in:
parent
3989ef293d
commit
5e9b3d0000
4 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@ apply plugin: 'kotlin'
|
|||
|
||||
dependencies {
|
||||
compile "com.google.guava:guava:18.0"
|
||||
compile "com.beust:kobalt:0.170"
|
||||
compile "com.beust:kobalt:0.171"
|
||||
}
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
|
|
|
@ -36,6 +36,6 @@
|
|||
<orderEntry type="library" name="Gradle: javax.inject:javax.inject:1" level="project" />
|
||||
<orderEntry type="library" name="Gradle: aopalliance:aopalliance:1.0" level="project" />
|
||||
<orderEntry type="library" name="Gradle: org.codehaus.plexus:plexus-utils:3.0.20" level="project" />
|
||||
<orderEntry type="library" name="Gradle: com.beust:kobalt:0.170" level="project" />
|
||||
<orderEntry type="library" name="Gradle: com.beust:kobalt:0.171" level="project" />
|
||||
</component>
|
||||
</module>
|
|
@ -1 +1 @@
|
|||
kobalt.version=0.170
|
||||
kobalt.version=0.171
|
|
@ -15,7 +15,7 @@ fun main(argv: Array<String>) {
|
|||
com.beust.kobalt.main(argv)
|
||||
}
|
||||
|
||||
public class LineCountMain : BasePlugin(), KobaltLogger {
|
||||
public class LineCountPlugin : BasePlugin(), KobaltLogger {
|
||||
companion object {
|
||||
const val NAME : String = "kobalt-line-count"
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ data class LineCountInfo(var suffix: String = "**kt")
|
|||
public fun lineCount(init: LineCountInfo.() -> Unit): LineCountInfo {
|
||||
with(LineCountInfo()) {
|
||||
init()
|
||||
(Plugins.getPlugin(LineCountMain.NAME) as LineCountMain).info = this
|
||||
(Kobalt.findPlugin(LineCountPlugin.NAME) as LineCountPlugin).info = this
|
||||
return this
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue