aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main/kotlin/org/jetbrains/BintrayPublishing.kt
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-01-31 14:04:42 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-01-31 15:27:26 +0100
commit79ec42607f3bc090ef40547a01aabcd1cd55886e (patch)
tree63f01b2ed1d92e3a3040bd95c27a10d3b53a5f06 /buildSrc/src/main/kotlin/org/jetbrains/BintrayPublishing.kt
parentd6fab477e89b781c85cf123fa58078deaa15d480 (diff)
downloaddokka-79ec42607f3bc090ef40547a01aabcd1cd55886e.tar.gz
dokka-79ec42607f3bc090ef40547a01aabcd1cd55886e.tar.bz2
dokka-79ec42607f3bc090ef40547a01aabcd1cd55886e.zip
Minor fixes, rewritten CrossPlatformExec.kt
Diffstat (limited to 'buildSrc/src/main/kotlin/org/jetbrains/BintrayPublishing.kt')
-rw-r--r--buildSrc/src/main/kotlin/org/jetbrains/BintrayPublishing.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/buildSrc/src/main/kotlin/org/jetbrains/BintrayPublishing.kt b/buildSrc/src/main/kotlin/org/jetbrains/BintrayPublishing.kt
index 19e032a8..78e4257f 100644
--- a/buildSrc/src/main/kotlin/org/jetbrains/BintrayPublishing.kt
+++ b/buildSrc/src/main/kotlin/org/jetbrains/BintrayPublishing.kt
@@ -4,9 +4,7 @@ import com.jfrog.bintray.gradle.BintrayExtension
import org.gradle.api.Project
import org.gradle.kotlin.dsl.provideDelegate
-fun Project.configureBintrayPublication(publication: String) = configureBintrayPublication(listOf(publication))
-
-fun Project.configureBintrayPublication(publications: List<String>) {
+fun Project.configureBintrayPublication(vararg publications: String) {
val dokka_version: String by this
val dokka_publication_channel: String by this
extensions.configure<BintrayExtension>("bintray") {
@@ -24,6 +22,6 @@ fun Project.configureBintrayPublication(publications: List<String>) {
name = dokka_version
}
}
- setPublications(*publications.toTypedArray())
+ setPublications(*publications)
}
} \ No newline at end of file