summaryrefslogtreecommitdiffstats
path: root/kobalt/src/Build.kt
blob: ae8156eb1ed3c6cdbb939cf2baa6bf55a910ffb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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"
        })
    }

}