1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00

one more fix for publishing

This commit is contained in:
InsanusMokrassar 2020-01-13 23:21:07 +06:00
parent 4b66617db6
commit 10df8cbc55

View File

@ -2,10 +2,6 @@ apply plugin: 'com.jfrog.bintray'
apply from: "maven.publish.gradle"
ext {
projectBintrayDir = "${project.group}/".replace(".", "/") + "${project.name}/${project.version}"
}
bintray {
user = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER')
key = project.hasProperty('BINTRAY_KEY') ? project.property('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
@ -44,9 +40,14 @@ bintray {
}
bintrayUpload.doFirst {
publications = publishing.publications.collect {
String[] toInclude = publishing.publications.collect {
if (it.name.contains('kotlinMultiplatform')) {
null
} else {
it.name
}
}
publications = (toInclude - null)
}
bintrayUpload.dependsOn publishToMavenLocal