First commit.

This commit is contained in:
Erik C. Thauvin 2016-07-09 19:58:13 -07:00
commit a7a703ccc8
11 changed files with 147 additions and 0 deletions

28
.gitignore vendored Normal file
View file

@ -0,0 +1,28 @@
**/.idea/dictionaries
**/.idea/gradle.xml
**/.idea/libraries
**/.idea/tasks.xml
**/.idea/workspace.xml
*.iws
.DS_Store
.classpath
.gradle
.kobalt
.nb-gradle
.project
.settings
/bin
/build
/deploy
/dist
/gen
/gradle.properties
/local.properties
/out
/proguard-project.txt
/project.properties
/target
/test-output
Thumbs.db
ehthumbs.db
kobaltBuild

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

1
example2/test.properties Normal file
View file

@ -0,0 +1 @@
version=example2

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

83
kobalt/src/Build.kt Normal file
View file

@ -0,0 +1,83 @@
import com.beust.kobalt.*
import com.beust.kobalt.plugin.packaging.*
import com.beust.kobalt.plugin.application.*
import com.beust.kobalt.plugin.java.*
import java.io.FileInputStream
import java.util.*
val repos = repos()
fun versionFor(): String {
val p = Properties().apply { FileInputStream("test.properties").use { fis -> load(fis) } }
return p.getProperty("version", "")
}
val example = project {
name = "example"
group = "com.example"
artifactId = name
version = versionFor()
sourceDirectories {
path("src/main/java")
}
sourceDirectoriesTest {
path("src/test/java")
}
dependencies {
// compile("com.beust:jcommander:1.48")
}
dependenciesTest {
compile("org.testng:testng:6.9.9")
}
assemble {
jar {
}
}
application {
mainClass = "com.example.Main"
}
}
val example2 = project {
directory = "example2"
name = "example2"
group = "com.example"
artifactId = name
version = versionFor()
sourceDirectories {
path("src/main/java")
}
sourceDirectoriesTest {
path("src/test/java")
}
dependencies {
// compile("com.beust:jcommander:1.48")
}
dependenciesTest {
compile("org.testng:testng:6.9.9")
}
assemble {
jar {
}
}
application {
mainClass = "com.example.Main"
}
}

Binary file not shown.

View file

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

1
kobaltw Normal file
View file

@ -0,0 +1 @@
java -jar $(dirname $0)/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");
}
}

1
test.properties Normal file
View file

@ -0,0 +1 @@
version=example