Initial commit

This commit is contained in:
Erik C. Thauvin 2018-01-02 17:45:11 -08:00
commit da9aad15e4
29 changed files with 1338 additions and 0 deletions

View file

@ -0,0 +1,46 @@
import com.beust.kobalt.*
import com.beust.kobalt.plugin.application.*
import com.beust.kobalt.plugin.packaging.*
import net.thauvin.erik.kobalt.plugin.pom2xml.*
// ./kobaltw pom2xml
val bs = buildScript {
repos(localMaven())
plugins("net.thauvin.erik:kobalt-pom2xml:0.1.0")
}
val p = project {
name = "example"
group = "com.example"
artifactId = name
version = "0.1"
dependencies {
compile("com.beust:jcommander:1.47")
//compile("org.slf4j:slf4j-api:")
compile("ch.qos.logback:logback-core:0.5")
compile("ch.qos.logback:logback-classic:1.1.7")
compile("commons-httpclient:commons-httpclient:3.1")
compile("com.beust:kobalt-plugin-api:0.878")
}
dependenciesTest {
compile("org.testng:testng:")
}
assemble {
jar {
}
}
application {
mainClass = "com.example.MainKt"
}
pom2xml {
// loc = "foo/bar"
// filename = "pom-example.xml"
}
}

Binary file not shown.

View file

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

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" %*

43
example/pom.xml Normal file
View file

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>example</artifactId>
<version>0.1</version>
<name>example</name>
<description></description>
<dependencies>
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.47</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>0.5</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.7</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>com.beust</groupId>
<artifactId>kobalt-plugin-api</artifactId>
<version>0.878</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>(0,]</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

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