Initial commit.

This commit is contained in:
Erik C. Thauvin 2016-07-27 15:51:42 -07:00
commit 27f1f3e9cc
25 changed files with 635 additions and 0 deletions

View file

@ -0,0 +1,48 @@
import com.beust.kobalt.*
import com.beust.kobalt.plugin.packaging.*
import com.beust.kobalt.plugin.application.*
import com.beust.kobalt.plugin.kotlin.*
import net.thauvin.erik.kobalt.plugin.versioneye.*
val repos = repos()
val pl = plugins(file("../kobaltBuild/libs/kobalt-versioneye-0.4.0-beta.jar"))
//val pl = plugins("net.thauvin.erik:kobalt-maven-local:0.5.0")
val p = project {
name = "example"
group = "com.example"
artifactId = name
version = "0.1"
sourceDirectories {
path("src/main/kotlin")
}
sourceDirectoriesTest {
path("src/test/kotlin")
}
dependencies {
// compile("com.beust:jcommander:1.48")
}
dependenciesTest {
compile("org.testng:testng:")
}
assemble {
jar {
}
}
application {
mainClass = "com.example.MainKt"
}
versionEye {
//baseUrl = ""
}
}

Binary file not shown.

View file

@ -0,0 +1 @@
kobalt.version=0.871

2
example/kobaltw Normal file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env sh
java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $*

4
example/kobaltw.bat Normal file
View file

@ -0,0 +1,4 @@
@echo off
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
java -jar "%DIRNAME%/kobalt/wrapper/kobalt-wrapper.jar" %*

View file

@ -0,0 +1,3 @@
package com.example
fun main(args: Array<String>) = println("\n\nHello Kotlin world from Kobalt\n\n")

View file

@ -0,0 +1,8 @@
package com.example
import org.testng.annotations.Test
class ExampleTest {
@Test
fun f() = println("Running test")
}