1 2 import com.beust.kobalt.plugin.java.javaCompiler 3 import com.beust.kobalt.plugin.osgi.* 4 import com.beust.kobalt.plugin.packaging.assemble 5 import com.beust.kobalt.plugin.publish.bintray 6 import com.beust.kobalt.project 7 import org.apache.maven.model.Developer 8 import org.apache.maven.model.License 9 import org.apache.maven.model.Model 10 import org.apache.maven.model.Scm 11 <lambda>null12val jcommander = project { 13 name = "jcommander" 14 group = "com.beust" 15 artifactId = name 16 version = "1.71" 17 description = "A Java library to parse command line options" 18 19 dependenciesTest { 20 compile("org.testng:testng:6.10") 21 exclude("com.beust:jcommander:1.48") 22 } 23 24 assemble { 25 mavenJars { 26 } 27 } 28 29 bintray { 30 publish = true 31 sign = true 32 } 33 34 javaCompiler { 35 args("-target", "1.7", "-source", "1.7") 36 } 37 38 osgi {} 39 40 pom = Model().apply { 41 name = project.name 42 description = "Command line parsing" 43 url = "http://jcommander.org" 44 licenses = listOf(License().apply { 45 name = "Apache 2.0" 46 url = "http://www.apache.org/licenses/LICENSE-2.0" 47 }) 48 scm = Scm().apply { 49 url = "http://github.com/cbeust/jcommander" 50 connection = "https://github.com/cbeust/jcommander.git" 51 developerConnection = "git@github.com:cbeust/jcommander.git" 52 } 53 developers = listOf(Developer().apply { 54 name = "Cedric Beust" 55 email = "cedric@beust.com" 56 }) 57 } 58 59 } 60