mirror of
https://github.com/ethauvin/kobalt-line-count.git
synced 2025-04-24 18:57:11 -07:00
0.138
This commit is contained in:
parent
26a16c6a55
commit
34dcabbeb9
5 changed files with 15 additions and 19 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.idea
|
||||||
|
.kobalt
|
||||||
|
|
6
.idea/kannotator.xml
generated
Normal file
6
.idea/kannotator.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="KannotatorSettings">
|
||||||
|
<option name="dismissedInVersion" value="0.2.1205" />
|
||||||
|
</component>
|
||||||
|
</project>
|
19
Build.kt
19
Build.kt
|
@ -1,5 +1,5 @@
|
||||||
import com.beust.kobalt.*
|
import com.beust.kobalt.*
|
||||||
import com.beust.kobalt.plugin.packaging.packaging
|
import com.beust.kobalt.plugin.packaging.*
|
||||||
import com.beust.kobalt.plugin.kotlin.*
|
import com.beust.kobalt.plugin.kotlin.*
|
||||||
|
|
||||||
val repos = repos("https://dl.bintray.com/cbeust/maven/")
|
val repos = repos("https://dl.bintray.com/cbeust/maven/")
|
||||||
|
@ -9,26 +9,13 @@ val project = kotlinProject {
|
||||||
group = "com.beust.kobalt"
|
group = "com.beust.kobalt"
|
||||||
artifactId = name
|
artifactId = name
|
||||||
version = "0.2"
|
version = "0.2"
|
||||||
directory = "/Users/beust/kotlin/kobalt-line-count"
|
|
||||||
|
|
||||||
sourceDirectories {
|
|
||||||
path("src/main/kotlin")
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceDirectoriesTest {
|
|
||||||
path()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("com.beust:kobalt:0.71")
|
compile("com.beust:kobalt:0.139")
|
||||||
}
|
}
|
||||||
|
|
||||||
// dependenciesTest {
|
|
||||||
// compile("org.testng:testng:6.9.5")
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val packProject = packaging(project) {
|
val packProject = assemble(project) {
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes("Kobalt-Plugin-Class", "com.beust.kobalt.plugin.linecount.Main")
|
attributes("Kobalt-Plugin-Class", "com.beust.kobalt.plugin.linecount.Main")
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
kobalt.version=0.71
|
kobalt.version=0.139
|
|
@ -4,7 +4,7 @@ import com.beust.kobalt.api.BasePlugin
|
||||||
import com.beust.kobalt.internal.TaskResult
|
import com.beust.kobalt.internal.TaskResult
|
||||||
import java.nio.file.attribute.BasicFileAttributes
|
import java.nio.file.attribute.BasicFileAttributes
|
||||||
|
|
||||||
import com.beust.kobalt.api.Project
|
import com.beust.kobalt.api.*
|
||||||
import com.beust.kobalt.api.annotation.Task
|
import com.beust.kobalt.api.annotation.Task
|
||||||
import com.beust.kobalt.misc.KobaltLogger
|
import com.beust.kobalt.misc.KobaltLogger
|
||||||
import java.nio.file.*
|
import java.nio.file.*
|
||||||
|
@ -12,7 +12,7 @@ import java.nio.file.*
|
||||||
public class Main : BasePlugin(), KobaltLogger {
|
public class Main : BasePlugin(), KobaltLogger {
|
||||||
override val name = "kobalt-line-count"
|
override val name = "kobalt-line-count"
|
||||||
|
|
||||||
override fun apply(project: Project) {
|
override fun apply(project: Project, context: KobaltContext) {
|
||||||
println("*** Applying plugin ${name} with project ${project}")
|
println("*** Applying plugin ${name} with project ${project}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue