Initial commit.
This commit is contained in:
commit
ec2ca3184a
20 changed files with 770 additions and 0 deletions
41
example/kobalt/src/Build.kt
Normal file
41
example/kobalt/src/Build.kt
Normal 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"
|
||||
}
|
||||
}
|
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=0.861
|
1
example/kobaltw
Normal file
1
example/kobaltw
Normal file
|
@ -0,0 +1 @@
|
|||
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" %*
|
7
example/src/main/java/com/example/Main.java
Normal file
7
example/src/main/java/com/example/Main.java
Normal 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");
|
||||
}
|
||||
}
|
9
example/src/test/java/com/example/ExampleTest.java
Normal file
9
example/src/test/java/com/example/ExampleTest.java
Normal 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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue