First commit.

This commit is contained in:
Erik C. Thauvin 2017-04-17 17:54:43 -07:00
commit 644c712cc7
26 changed files with 1277 additions and 0 deletions

View file

@ -0,0 +1,37 @@
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.propertyfile.*
val bs = buildScript {
plugins(file("../libs/kobalt-property-file-0.1.0.jar"))
}
val p = project {
name = "example"
group = "com.example"
artifactId = name
version = "0.1"
dependencies {
// compile("com.beust:jcommander:1.68")
}
dependenciesTest {
compile("org.testng:testng:6.11")
}
assemble {
jar {
}
}
application {
mainClass = "com.example.MainKt"
}
propertyFile {
file = "version.properties"
}
}

Binary file not shown.

View file

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

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")
}