mirror of
https://github.com/ethauvin/kobalt-line-count.git
synced 2025-04-25 03:07: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
|
@ -1 +1,3 @@
|
||||||
# kobalt-line-count, a plug-in for the Kobalt build system
|
# kobalt-line-count, a plug-in for the Kobalt build system
|
||||||
|
|
||||||
|
Please see [the Kobalt documentation](http://beust.com/kobalt/ten-minutes/index.html) where this plug-in is explained in details.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
buildscript {
|
buildscript {
|
||||||
|
ext.kotlin_version = '1.0.0-beta-3595'
|
||||||
ext.kotlin_version = '0.14.449'
|
ext.kotlin_version = '0.14.449'
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
|
@ -10,6 +11,7 @@ buildscript {
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
|
||||||
classpath "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"
|
classpath "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"
|
||||||
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +25,8 @@ apply plugin: 'kotlin'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile "com.google.guava:guava:18.0"
|
compile "com.google.guava:guava:18.0"
|
||||||
compile "com.beust:kobalt:0.174"
|
compile "com.beust:kobalt:0.329"
|
||||||
|
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||||
}
|
}
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main.java.srcDirs += 'src/main/kotlin'
|
main.java.srcDirs += 'src/main/kotlin'
|
||||||
|
|
|
@ -5,7 +5,7 @@ import com.beust.kobalt.plugin.publish.*
|
||||||
//import com.beust.kobalt.plugin.linecount.lineCount
|
//import com.beust.kobalt.plugin.linecount.lineCount
|
||||||
|
|
||||||
//val plugins = plugins(
|
//val plugins = plugins(
|
||||||
//// "com.beust.kobalt:kobalt-line-count:0.14"
|
// "com.beust.kobalt:kobalt-line-count:0.14"
|
||||||
// file(homeDir("kotlin/kobalt-line-count/kobaltBuild/libs/kobalt-line-count-0.14.jar"))
|
// file(homeDir("kotlin/kobalt-line-count/kobaltBuild/libs/kobalt-line-count-0.14.jar"))
|
||||||
//)
|
//)
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1 +1 @@
|
||||||
kobalt.version=0.388
|
kobalt.version=0.388
|
||||||
|
|
4
kobaltw
4
kobaltw
|
@ -1,2 +1,2 @@
|
||||||
java -jar kobalt/wrapper/kobalt-wrapper.jar $*
|
#!/usr/bin/env bash
|
||||||
|
java -jar $(dirname $0)/kobalt/wrapper/kobalt-wrapper.jar $*
|
||||||
|
|
|
@ -13,12 +13,12 @@ import java.nio.file.attribute.BasicFileAttributes
|
||||||
//}
|
//}
|
||||||
|
|
||||||
public class LineCountPlugin : BasePlugin(), ITaskContributor {
|
public class LineCountPlugin : BasePlugin(), ITaskContributor {
|
||||||
override fun tasksFor(context: KobaltContext)
|
// ITaskContributor
|
||||||
= listOf(DynamicTask(this, "dynamicTask", "Dynamic task", runBefore = listOf("compile"),
|
override fun tasksFor(context: KobaltContext) = listOf(
|
||||||
closure = { project ->
|
DynamicTask(this, "dynamicTask", "Dynamic task", runBefore = listOf("compile"), closure = {
|
||||||
println("Running dynamic task")
|
|
||||||
TaskResult()
|
TaskResult()
|
||||||
}))
|
})
|
||||||
|
)
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val NAME : String = "kobalt-line-count"
|
const val NAME : String = "kobalt-line-count"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue