mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Upload kobalt-wrapper to bintray too.
This commit is contained in:
parent
821752bdb9
commit
ebf272bf98
1 changed files with 27 additions and 18 deletions
|
@ -62,6 +62,7 @@ val wrapper = project {
|
||||||
}
|
}
|
||||||
|
|
||||||
assemble {
|
assemble {
|
||||||
|
jar { }
|
||||||
jar {
|
jar {
|
||||||
name = projectName + ".jar"
|
name = projectName + ".jar"
|
||||||
manifest {
|
manifest {
|
||||||
|
@ -73,6 +74,12 @@ val wrapper = project {
|
||||||
application {
|
application {
|
||||||
mainClass = "com.beust.kobalt.wrapper.Main"
|
mainClass = "com.beust.kobalt.wrapper.Main"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bintray {
|
||||||
|
publish = true
|
||||||
|
}
|
||||||
|
|
||||||
|
pom = createPom(name, "Wrapper for Kobalt")
|
||||||
}
|
}
|
||||||
|
|
||||||
val kobaltPluginApi = project {
|
val kobaltPluginApi = project {
|
||||||
|
@ -84,24 +91,7 @@ val kobaltPluginApi = project {
|
||||||
description = "A build system in Kotlin"
|
description = "A build system in Kotlin"
|
||||||
url = "http://beust.com/kobalt"
|
url = "http://beust.com/kobalt"
|
||||||
|
|
||||||
pom = Model().apply {
|
pom = createPom(name, "A build system in Kotlin")
|
||||||
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"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile(
|
compile(
|
||||||
|
@ -278,3 +268,22 @@ fun taskCopyVersionForWrapper(project: Project) : TaskResult {
|
||||||
}
|
}
|
||||||
return 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"
|
||||||
|
})
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue