1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Upload kobalt-wrapper to bintray too.

This commit is contained in:
Cedric Beust 2017-04-08 07:53:45 -07:00
parent 821752bdb9
commit ebf272bf98

View file

@ -62,6 +62,7 @@ val wrapper = project {
}
assemble {
jar { }
jar {
name = projectName + ".jar"
manifest {
@ -73,6 +74,12 @@ val wrapper = project {
application {
mainClass = "com.beust.kobalt.wrapper.Main"
}
bintray {
publish = true
}
pom = createPom(name, "Wrapper for Kobalt")
}
val kobaltPluginApi = project {
@ -84,24 +91,7 @@ val kobaltPluginApi = project {
description = "A build system in Kotlin"
url = "http://beust.com/kobalt"
pom = Model().apply {
name = project.name
description = "A build system in Kotlin"
url = "http://beust.com/kobalt"
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/kobalt"
connection = "https://github.com/cbeust/kobalt.git"
developerConnection = "git@github.com:cbeust/kobalt.git"
}
developers = listOf(Developer().apply {
name = "Cedric Beust"
email = "cedric@beust.com"
})
}
pom = createPom(name, "A build system in Kotlin")
dependencies {
compile(
@ -278,3 +268,22 @@ fun taskCopyVersionForWrapper(project: Project) : TaskResult {
}
return TaskResult()
}
fun createPom(projectName: String, projectDescription: String) = Model().apply {
name = projectName
description = projectDescription
url = "http://beust.com/kobalt"
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/kobalt"
connection = "https://github.com/cbeust/kobalt.git"
developerConnection = "git@github.com:cbeust/kobalt.git"
}
developers = listOf(Developer().apply {
name = "Cedric Beust"
email = "cedric@beust.com"
})
}