Added Kobalt build for Kotlin example.
This commit is contained in:
parent
0f44c9fa27
commit
bf804992e9
6 changed files with 36 additions and 0 deletions
|
@ -66,6 +66,7 @@ dependencies {
|
||||||
compile("net.thauvin.erik:pinboard-poster:0.9.3")
|
compile("net.thauvin.erik:pinboard-poster:0.9.3")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/koltin/kobalt/src/Build.kt)
|
||||||
|
|
||||||
## Adding
|
## Adding
|
||||||
|
|
||||||
|
|
28
samples/koltin/kobalt/src/Build.kt
Normal file
28
samples/koltin/kobalt/src/Build.kt
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
import com.beust.kobalt.*
|
||||||
|
import com.beust.kobalt.plugin.application.*
|
||||||
|
import com.beust.kobalt.plugin.packaging.assemble
|
||||||
|
|
||||||
|
// ./kobaltw run
|
||||||
|
|
||||||
|
val bs = buildScript {
|
||||||
|
repos(localMaven())
|
||||||
|
}
|
||||||
|
|
||||||
|
val p = project {
|
||||||
|
name = "KotlinExample"
|
||||||
|
version = "0.1"
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile("net.thauvin.erik:pinboard-poster:1.0.0")
|
||||||
|
}
|
||||||
|
|
||||||
|
assemble {
|
||||||
|
jar {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
application {
|
||||||
|
mainClass = "net.thauvin.erik.pinboard.samples.KotlinExampleKt"
|
||||||
|
}
|
||||||
|
}
|
BIN
samples/koltin/kobalt/wrapper/kobalt-wrapper.jar
Normal file
BIN
samples/koltin/kobalt/wrapper/kobalt-wrapper.jar
Normal file
Binary file not shown.
1
samples/koltin/kobalt/wrapper/kobalt-wrapper.properties
Normal file
1
samples/koltin/kobalt/wrapper/kobalt-wrapper.properties
Normal file
|
@ -0,0 +1 @@
|
||||||
|
kobalt.version=1.0.114
|
2
samples/koltin/kobaltw
Normal file
2
samples/koltin/kobaltw
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $*
|
4
samples/koltin/kobaltw.bat
Normal file
4
samples/koltin/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" %*
|
Loading…
Add table
Add a link
Reference in a new issue