mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-22 16:23:55 +00:00
update publish script
This commit is contained in:
parent
10ee1672bc
commit
d516c26381
@ -2,26 +2,25 @@ 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 {
|
filesSpec {
|
||||||
from "${buildDir}/publications/"
|
from "${buildDir}/publications/"
|
||||||
eachFile {
|
eachFile {
|
||||||
|
String directorySubname = it.getFile().parentFile.name
|
||||||
if (it.getName() == "module.json") {
|
if (it.getName() == "module.json") {
|
||||||
File file = it.getFile()
|
|
||||||
String directorySubname = file.parentFile.name
|
|
||||||
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 {
|
} 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 {
|
||||||
it.exclude()
|
if (directorySubname == "kotlinMultiplatform" && it.getName() == "pom-default.xml") {
|
||||||
|
it.setPath("${project.name}/${project.version}/${project.name}-${project.version}.pom")
|
||||||
|
} else {
|
||||||
|
it.exclude()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
into "${project.group}".replace(".", "/")
|
into "${project.group}".replace(".", "/")
|
||||||
|
Loading…
Reference in New Issue
Block a user