mirror of
https://github.com/ethauvin/kobalt-line-count.git
synced 2025-04-25 03:07:11 -07:00
38 lines
951 B
Kotlin
38 lines
951 B
Kotlin
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
|
|
|
|
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 project = kotlinProject {
|
|
name = "kobalt-line-count"
|
|
group = "com.beust.kobalt"
|
|
artifactId = name
|
|
version = "0.14"
|
|
|
|
dependencies {
|
|
// compile("file:" + homeDir("kotlin/kobalt/kobaltBuild/libs/kobalt-0.168.jar"))
|
|
compile("com.beust:kobalt:0.174")
|
|
}
|
|
}
|
|
|
|
val packProject = assemble(project) {
|
|
mavenJars {
|
|
manifest {
|
|
attributes("Kobalt-Plugin-Class", "com.beust.kobalt.plugin.linecount.LineCountPlugin")
|
|
}
|
|
}
|
|
}
|
|
|
|
val jc = jcenter(project) {
|
|
publish = true
|
|
}
|