Simplify BintrayExtension configuration
This commit is contained in:
parent
97d0567489
commit
f2c0f5be32
@ -44,6 +44,10 @@ dependencies {
|
|||||||
val SourceSet.kotlin: SourceDirectorySet
|
val SourceSet.kotlin: SourceDirectorySet
|
||||||
get() = withConvention(KotlinSourceSet::class) { kotlin }
|
get() = withConvention(KotlinSourceSet::class) { kotlin }
|
||||||
|
|
||||||
|
fun BintrayExtension.pkg(configure: BintrayExtension.PackageConfig.() -> Unit): Any? {
|
||||||
|
return pkg(closureOf(configure))
|
||||||
|
}
|
||||||
|
|
||||||
val dokka by tasks.existing(DokkaTask::class) {
|
val dokka by tasks.existing(DokkaTask::class) {
|
||||||
kotlinTasks(closureOf<Any?> { emptyList() })
|
kotlinTasks(closureOf<Any?> { emptyList() })
|
||||||
sourceDirs = sourceSets["main"].kotlin.srcDirs
|
sourceDirs = sourceSets["main"].kotlin.srcDirs
|
||||||
@ -88,12 +92,12 @@ bintray {
|
|||||||
key = project.findProperty("bintrayKey")?.toString() ?: ""
|
key = project.findProperty("bintrayKey")?.toString() ?: ""
|
||||||
setPublications("mavenJava")
|
setPublications("mavenJava")
|
||||||
|
|
||||||
pkg(closureOf<BintrayExtension.PackageConfig> {
|
pkg {
|
||||||
repo = "maven"
|
repo = "maven"
|
||||||
name = "kotlin-result"
|
name = "kotlin-result"
|
||||||
vcsUrl = "git@github.com:michaelbull/kotlin-result.git"
|
vcsUrl = "git@github.com:michaelbull/kotlin-result.git"
|
||||||
setLicenses("ISC")
|
setLicenses("ISC")
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val bintrayUpload by tasks.existing(BintrayUploadTask::class) {
|
val bintrayUpload by tasks.existing(BintrayUploadTask::class) {
|
||||||
|
Loading…
Reference in New Issue
Block a user