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
artifact sourcesJar
artifact javadocJar
groupId "${project.group}"
artifactId "${project.name}"
version "${project.version}"

View File

@ -9,6 +9,7 @@ ext {
bintray {
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')
publications = ["maven"]
filesSpec {
into "$projectBintrayDir"
from("build/libs") {
@ -23,6 +24,7 @@ bintray {
name = "${project.name}"
vcsUrl = "https://github.com/PostsSystem/PostsSystemCore"
licenses = ["Apache-2.0"]
publications = [ MavenPublication ]
version {
name = "${project.version}"
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