fixes in publication scripts

This commit is contained in:
InsanusMokrassar 2020-01-31 18:19:27 +06:00
parent 9f6571ec4c
commit 4255354e6a
2 changed files with 3 additions and 10 deletions

View File

@ -16,6 +16,7 @@ publishing {
from components.java from components.java
artifact sourcesJar artifact sourcesJar
artifact javadocJar artifact javadocJar
groupId "${project.group}" groupId "${project.group}"
artifactId "${project.name}" artifactId "${project.name}"
version "${project.version}" version "${project.version}"

View File

@ -9,6 +9,7 @@ ext {
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')
publications = ["maven"]
filesSpec { filesSpec {
into "$projectBintrayDir" into "$projectBintrayDir"
from("build/libs") { from("build/libs") {
@ -23,6 +24,7 @@ bintray {
name = "${project.name}" name = "${project.name}"
vcsUrl = "https://github.com/PostsSystem/PostsSystemCore" vcsUrl = "https://github.com/PostsSystem/PostsSystemCore"
licenses = ["Apache-2.0"] licenses = ["Apache-2.0"]
publications = [ MavenPublication ]
version { version {
name = "${project.version}" name = "${project.version}"
released = new Date() released = new Date()
@ -35,14 +37,4 @@ bintray {
} }
} }
bintrayUpload.doFirst {
publications = publishing.publications.collect {
if (it.name.contains('kotlinMultiplatform')) {
null
} else {
it.name
}
} - null
}
bintrayUpload.dependsOn publishToMavenLocal bintrayUpload.dependsOn publishToMavenLocal