Initial commit.

This commit is contained in:
Erik C. Thauvin 2017-03-20 17:09:46 -07:00
commit f186d450d0
9 changed files with 127 additions and 0 deletions

5
.gitattributes vendored Normal file
View file

@ -0,0 +1,5 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# batch files are specific to windows and always crlf
*.bat eol=crlf

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

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

@ -0,0 +1,71 @@
import com.beust.kobalt.*
import com.beust.kobalt.plugin.packaging.*
import com.beust.kobalt.plugin.publish.*
import com.beust.kobalt.plugin.application.*
import com.beust.kobalt.plugin.java.*
import org.apache.maven.model.*
val bs = buildScript {
repos()
}
val p = project {
name = "kobalt-test"
group = "net.thauvin.erik"
artifactId = name
version = "0.1"
pom = Model().apply {
licenses = listOf(License().apply {
name = "BSD 3-Clause"
url = "https://opensource.org/licenses/BSD-3-Clause"
})
scm = Scm().apply {
url = "https://github.com/ethauvin/kobalt-test"
connection = "https://github.com/ethauvin/kobalt-test.git"
developerConnection = "git@github.com:ethauvin/kobalt-test.git"
}
developers = listOf(Developer().apply {
id = "ethauvin"
name = "Erik C. Thauvin"
email = "erik@thauvin.net"
})
}
sourceDirectories {
path("src/main/java")
}
sourceDirectoriesTest {
path("src/test/java")
}
dependencies {
// compile("com.beust:jcommander:1.48")
}
dependenciesTest {
compile("org.testng:testng:6.10")
}
assemble {
jar {
}
}
application {
mainClass = "com.example.Main"
}
autoGitTag {
enabled = true
message = "Version $version"
}
bintray {
publish = true
}
}

Binary file not shown.

View file

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

2
kobaltw Normal file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env sh
java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $*

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