1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 12:08:43 +00:00

updates in publish script

This commit is contained in:
InsanusMokrassar 2020-01-13 11:26:52 +06:00
parent 82129205fa
commit 9ddab0bf29
2 changed files with 15 additions and 1 deletions

View File

@ -34,18 +34,22 @@ publishing {
} }
developers { developers {
developer { developer {
id "InsanusMokrassar" id "InsanusMokrassar"
name "Ovsiannikov Aleksei" name "Ovsiannikov Aleksei"
email "ovsyannikov.alexey95@gmail.com" email "ovsyannikov.alexey95@gmail.com"
} }
} }
licenses { licenses {
license { license {
name "Apache Software License 2.0" name "Apache Software License 2.0"
url "https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/LICENSE" url "https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/LICENSE"
} }
} }
} }
} }

View File

@ -2,9 +2,19 @@ apply plugin: 'com.jfrog.bintray'
apply from: "maven.publish.gradle" apply from: "maven.publish.gradle"
ext {
projectBintrayDir = "${project.group}/".replace(".", "/") + "${project.name}/${project.version}"
}
bintray { bintray {
user = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER') 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') key = project.hasProperty('BINTRAY_KEY') ? project.property('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
filesSpec {
from "${buildDir}/publications/kotlinMultiplatform/"
include "module.json"
rename "module\\.json", "${project.name}-${project.version}.module"
into "${projectBintrayDir}"
}
pkg { pkg {
repo = "StandardRepository" repo = "StandardRepository"
name = "${project.name}" name = "${project.name}"