mirror of
https://github.com/ethauvin/kobalt-line-count.git
synced 2025-04-25 03:07:11 -07:00
Update to 0.226.
This commit is contained in:
parent
430175cdbe
commit
e66e551c1f
4 changed files with 30 additions and 46 deletions
38
Build.kt
38
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
|
||||
}
|
||||
|
|
|
@ -16,26 +16,7 @@
|
|||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Gradle: com.google.guava:guava:18.0" level="project" />
|
||||
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib:0.14.449" level="project" />
|
||||
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-compiler-embeddable:0.14.449" level="project" />
|
||||
<orderEntry type="library" name="Gradle: com.beust:jcommander:1.48" level="project" />
|
||||
<orderEntry type="library" name="Gradle: com.beust:klaxon:0.16" level="project" />
|
||||
<orderEntry type="library" name="Gradle: com.squareup.okhttp:okhttp:2.4.0" level="project" />
|
||||
<orderEntry type="library" name="Gradle: org.slf4j:slf4j-api:1.7.12" level="project" />
|
||||
<orderEntry type="library" name="Gradle: org.slf4j:slf4j-simple:1.7.12" level="project" />
|
||||
<orderEntry type="library" name="Gradle: ch.qos.logback:logback-classic:1.1.2" level="project" />
|
||||
<orderEntry type="library" name="Gradle: org.jsoup:jsoup:1.8.2" level="project" />
|
||||
<orderEntry type="library" name="Gradle: com.google.inject:guice:4.0" level="project" />
|
||||
<orderEntry type="library" name="Gradle: com.google.inject.extensions:guice-assistedinject:4.0" level="project" />
|
||||
<orderEntry type="library" name="Gradle: org.apache.maven:maven-model:3.3.3" level="project" />
|
||||
<orderEntry type="library" name="Gradle: com.github.spullara.mustache.java:compiler:0.8.18" level="project" />
|
||||
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-runtime:0.14.449" level="project" />
|
||||
<orderEntry type="library" name="Gradle: com.squareup.okio:okio:1.4.0" level="project" />
|
||||
<orderEntry type="library" name="Gradle: ch.qos.logback:logback-core:1.1.2" level="project" />
|
||||
<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.174" level="project" />
|
||||
<orderEntry type="library" name="kobalt.jar" level="project" />
|
||||
<orderEntry type="library" name="kobalt (Compile)" level="project" />
|
||||
</component>
|
||||
</module>
|
|
@ -1 +1 @@
|
|||
kobalt.version=0.174
|
||||
kobalt.version=0.226
|
|
@ -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<String>) {
|
||||
com.beust.kobalt.main(argv)
|
||||
}
|
||||
|
||||
public class LineCountPlugin : BasePlugin(), KobaltLogger {
|
||||
public class LineCountPlugin : BasePlugin() {
|
||||
companion object {
|
||||
const val NAME : String = "kobalt-line-count"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue