fixes in publication scripts
This commit is contained in:
parent
9f6571ec4c
commit
4255354e6a
@ -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}"
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user