update publishing scripts

This commit is contained in:
InsanusMokrassar 2020-11-10 20:53:08 +06:00
parent 776a3af497
commit dffafa54c3
2 changed files with 9 additions and 2 deletions

View File

@ -12,4 +12,7 @@ function assert_success() {
export RELEASE_MODE=true export RELEASE_MODE=true
project="$1" project="$1"
assert_success ./gradlew clean "$project:clean" "$project:build" "$project:publishToMavenLocal" "$project:bintrayUpload" assert_success ./gradlew clean
assert_success ./gradlew "$project:build"
assert_success ./gradlew "$project:publishToMavenLocal"
assert_success ./gradlew "$project:bintrayUpload"

View File

@ -12,9 +12,13 @@ bintray {
if (it.getName() == "module.json") { if (it.getName() == "module.json") {
if (directorySubname == "kotlinMultiplatform") { if (directorySubname == "kotlinMultiplatform") {
it.setPath("${project.name}/${project.version}/${project.name}-${project.version}.module") it.setPath("${project.name}/${project.version}/${project.name}-${project.version}.module")
} else {
if (directorySubname.indexOf("android") != -1) {
it.setPath("${project.name}-android/${project.version}/${project.name}-android-${project.version}.module")
} else { } else {
it.setPath("${project.name}-${directorySubname}/${project.version}/${project.name}-${directorySubname}-${project.version}.module") it.setPath("${project.name}-${directorySubname}/${project.version}/${project.name}-${directorySubname}-${project.version}.module")
} }
}
} else { } else {
if (directorySubname == "kotlinMultiplatform" && it.getName() == "pom-default.xml") { if (directorySubname == "kotlinMultiplatform" && it.getName() == "pom-default.xml") {
it.setPath("${project.name}/${project.version}/${project.name}-${project.version}.pom") it.setPath("${project.name}/${project.version}/${project.name}-${project.version}.pom")