Initial commit.
This commit is contained in:
commit
f186d450d0
9 changed files with 127 additions and 0 deletions
5
.gitattributes
vendored
Normal file
5
.gitattributes
vendored
Normal 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
28
.gitignore
vendored
Normal 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
71
kobalt/src/Build.kt
Normal 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
|
||||
}
|
||||
}
|
BIN
kobalt/wrapper/kobalt-wrapper.jar
Normal file
BIN
kobalt/wrapper/kobalt-wrapper.jar
Normal file
Binary file not shown.
1
kobalt/wrapper/kobalt-wrapper.properties
Normal file
1
kobalt/wrapper/kobalt-wrapper.properties
Normal file
|
@ -0,0 +1 @@
|
|||
kobalt.version=1.0.18
|
2
kobaltw
Normal file
2
kobaltw
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env sh
|
||||
java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $*
|
4
kobaltw.bat
Normal file
4
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
src/main/java/com/example/Main.java
Normal file
7
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
src/test/java/com/example/ExampleTest.java
Normal file
9
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