Initial commit.

This commit is contained in:
Erik C. Thauvin 2016-07-20 16:02:48 -07:00
commit ec2ca3184a
20 changed files with 770 additions and 0 deletions

View file

@ -0,0 +1,41 @@
import com.beust.kobalt.*
import com.beust.kobalt.plugin.packaging.*
import com.beust.kobalt.plugin.application.*
import com.beust.kobalt.plugin.java.*
import net.thauvin.erik.kobalt.plugin.maven.local.*
val repos = repos(localMaven())
val pl = plugins(file("../kobaltBuild/libs/kobalt-maven-local-0.4.0-beta.jar"))
//val pl = plugins("net.thauvin.erik:kobalt-maven-local:0.4.0-beta")
val example = project {
name = "example"
group = "com.example"
artifactId = name
version = "0.1"
sourceDirectories {
path("src/main/java")
}
sourceDirectoriesTest {
path("src/test/java")
}
dependencies {
}
dependenciesTest {
}
assemble {
jar {
}
}
application {
mainClass = "com.example.Main"
}
}

Binary file not shown.

View file

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

1
example/kobaltw Normal file
View file

@ -0,0 +1 @@
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,7 @@
package com.example;
class Main {
public static void main(String[] argv) {
System.out.println("\n\nHello Java world from Kobalt\n\n");
}
}

View file

@ -0,0 +1,9 @@
package com.example;
import org.testng.annotations.Test;
public class ExampleTest {
@Test
public void f() {
System.out.println("Running test");
}
}