one more fix for publishing

This commit is contained in:
InsanusMokrassar 2020-01-13 23:21:07 +06:00
parent 4b66617db6
commit 10df8cbc55
1 changed files with 7 additions and 6 deletions

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 {
it.name
String[] toInclude = publishing.publications.collect {
if (it.name.contains('kotlinMultiplatform')) {
null
} else {
it.name
}
}
publications = (toInclude - null)
}
bintrayUpload.dependsOn publishToMavenLocal