summaryrefslogtreecommitdiffstats
path: root/kobalt/src/Build.kt
diff options
context:
space:
mode:
Diffstat (limited to 'kobalt/src/Build.kt')
-rw-r--r--kobalt/src/Build.kt59
1 files changed, 59 insertions, 0 deletions
diff --git a/kobalt/src/Build.kt b/kobalt/src/Build.kt
new file mode 100644
index 0000000..ae8156e
--- /dev/null
+++ b/kobalt/src/Build.kt
@@ -0,0 +1,59 @@
+
+import com.beust.kobalt.plugin.java.javaCompiler
+import com.beust.kobalt.plugin.osgi.*
+import com.beust.kobalt.plugin.packaging.assemble
+import com.beust.kobalt.plugin.publish.bintray
+import com.beust.kobalt.project
+import org.apache.maven.model.Developer
+import org.apache.maven.model.License
+import org.apache.maven.model.Model
+import org.apache.maven.model.Scm
+
+val jcommander = project {
+ name = "jcommander"
+ group = "com.beust"
+ artifactId = name
+ version = "1.71"
+ description = "A Java library to parse command line options"
+
+ dependenciesTest {
+ compile("org.testng:testng:6.10")
+ exclude("com.beust:jcommander:1.48")
+ }
+
+ assemble {
+ mavenJars {
+ }
+ }
+
+ bintray {
+ publish = true
+ sign = true
+ }
+
+ javaCompiler {
+ args("-target", "1.7", "-source", "1.7")
+ }
+
+ osgi {}
+
+ pom = Model().apply {
+ name = project.name
+ description = "Command line parsing"
+ url = "http://jcommander.org"
+ licenses = listOf(License().apply {
+ name = "Apache 2.0"
+ url = "http://www.apache.org/licenses/LICENSE-2.0"
+ })
+ scm = Scm().apply {
+ url = "http://github.com/cbeust/jcommander"
+ connection = "https://github.com/cbeust/jcommander.git"
+ developerConnection = "git@github.com:cbeust/jcommander.git"
+ }
+ developers = listOf(Developer().apply {
+ name = "Cedric Beust"
+ email = "cedric@beust.com"
+ })
+ }
+
+}