diff --git a/Build.kt b/Build.kt index 500b03c..13078ce 100644 --- a/Build.kt +++ b/Build.kt @@ -2,37 +2,39 @@ import com.beust.kobalt.* import com.beust.kobalt.plugin.packaging.* import com.beust.kobalt.plugin.kotlin.* import com.beust.kobalt.plugin.publish.* -import com.beust.kobalt.plugin.linecount.lineCount +//import com.beust.kobalt.plugin.linecount.lineCount -val plugins = plugins( -// "com.beust.kobalt:kobalt-line-count:0.14" - file(homeDir("kotlin/kobalt-line-count/kobaltBuild/libs/kobalt-line-count-0.14.jar")) -) +//val plugins = plugins( +//// "com.beust.kobalt:kobalt-line-count:0.14" +// file(homeDir("kotlin/kobalt-line-count/kobaltBuild/libs/kobalt-line-count-0.14.jar")) +//) -val lc = lineCount { - suffix = "**Plugin.kt" -} +//val lc = lineCount { +// suffix = "**Plugin.kt" +//} val project = kotlinProject { name = "kobalt-line-count" group = "com.beust.kobalt" artifactId = name - version = "0.14" + version = "0.15" dependencies { // compile("file:" + homeDir("kotlin/kobalt/kobaltBuild/libs/kobalt-0.168.jar")) - compile("com.beust:kobalt:0.174") + compile("com.beust:kobalt:0.226") } -} -val packProject = assemble(project) { - mavenJars { - manifest { - attributes("Kobalt-Plugin-Class", "com.beust.kobalt.plugin.linecount.LineCountPlugin") + assemble { + mavenJars { + manifest { + attributes("Kobalt-Plugin-Class", "com.beust.kobalt.plugin.linecount.LineCountPlugin") + } } } + + jcenter { + publish = true + } + } -val jc = jcenter(project) { - publish = true -} diff --git a/kobalt-line-count.iml b/kobalt-line-count.iml index 160e3df..da4723a 100644 --- a/kobalt-line-count.iml +++ b/kobalt-line-count.iml @@ -16,26 +16,7 @@ - - - - - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/kobalt/wrapper/kobalt-wrapper.properties b/kobalt/wrapper/kobalt-wrapper.properties index 9cb558b..5ea33a2 100644 --- a/kobalt/wrapper/kobalt-wrapper.properties +++ b/kobalt/wrapper/kobalt-wrapper.properties @@ -1 +1 @@ -kobalt.version=0.174 \ No newline at end of file +kobalt.version=0.226 \ No newline at end of file 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 d4a93bd..fe52da3 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/linecount/LineCountPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/linecount/LineCountPlugin.kt @@ -1,20 +1,21 @@ package com.beust.kobalt.plugin.linecount import com.beust.kobalt.api.BasePlugin -import com.beust.kobalt.internal.TaskResult -import com.beust.kobalt.api.* +import com.beust.kobalt.api.Kobalt +import com.beust.kobalt.api.KobaltContext +import com.beust.kobalt.api.Project import com.beust.kobalt.api.annotation.Directive import com.beust.kobalt.api.annotation.Task -import com.beust.kobalt.misc.KobaltLogger - -import java.nio.file.attribute.BasicFileAttributes +import com.beust.kobalt.internal.TaskResult +import com.beust.kobalt.misc.log import java.nio.file.* +import java.nio.file.attribute.BasicFileAttributes fun main(argv: Array) { com.beust.kobalt.main(argv) } -public class LineCountPlugin : BasePlugin(), KobaltLogger { +public class LineCountPlugin : BasePlugin() { companion object { const val NAME : String = "kobalt-line-count" }