mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-10 18:33:54 +00:00
update publish script
This commit is contained in:
parent
5c4d3814f6
commit
291c211063
@ -10,10 +10,21 @@ 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 {
|
filesSpec {
|
||||||
from "${buildDir}/publications/kotlinMultiplatform/"
|
from "${buildDir}/publications/"
|
||||||
include "module.json"
|
eachFile {
|
||||||
rename "module\\.json", "${project.name}-${project.version}.module"
|
if (it.getName() == "module.json") {
|
||||||
into "${projectBintrayDir}"
|
File file = it.getFile()
|
||||||
|
String directorySubname = file.parentFile.name
|
||||||
|
if (directorySubname == "kotlinMultiplatform") {
|
||||||
|
it.setPath("${project.name}/${project.version}/${project.name}-${project.version}.module")
|
||||||
|
} else {
|
||||||
|
it.setPath("${project.name}-${directorySubname}/${project.version}/${project.name}-${directorySubname}-${project.version}.module")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
it.exclude()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
into "${project.group}".replace(".", "/")
|
||||||
}
|
}
|
||||||
pkg {
|
pkg {
|
||||||
repo = "InsanusMokrassar"
|
repo = "InsanusMokrassar"
|
||||||
|
Loading…
Reference in New Issue
Block a user