First commit.
This commit is contained in:
commit
644c712cc7
26 changed files with 1277 additions and 0 deletions
37
example/kobalt/src/Build.kt
Normal file
37
example/kobalt/src/Build.kt
Normal 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"
|
||||
}
|
||||
}
|
BIN
example/kobalt/wrapper/kobalt-wrapper.jar
Normal file
BIN
example/kobalt/wrapper/kobalt-wrapper.jar
Normal file
Binary file not shown.
1
example/kobalt/wrapper/kobalt-wrapper.properties
Normal file
1
example/kobalt/wrapper/kobalt-wrapper.properties
Normal file
|
@ -0,0 +1 @@
|
|||
kobalt.version=1.0.67
|
2
example/kobaltw
Normal file
2
example/kobaltw
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env sh
|
||||
java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $*
|
4
example/kobaltw.bat
Normal file
4
example/kobaltw.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
@echo off
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
java -jar "%DIRNAME%/kobalt/wrapper/kobalt-wrapper.jar" %*
|
3
example/src/main/kotlin/com/example/Main.kt
Normal file
3
example/src/main/kotlin/com/example/Main.kt
Normal file
|
@ -0,0 +1,3 @@
|
|||
package com.example
|
||||
|
||||
fun main(args: Array<String>) = println("\n\nHello Kotlin world from Kobalt\n\n")
|
8
example/src/test/kotlin/com/example/MainTest.kt
Normal file
8
example/src/test/kotlin/com/example/MainTest.kt
Normal file
|
@ -0,0 +1,8 @@
|
|||
package com.example
|
||||
|
||||
import org.testng.annotations.Test
|
||||
|
||||
class ExampleTest {
|
||||
@Test
|
||||
fun f() = println("Running test")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue