update publishing

This commit is contained in:
InsanusMokrassar 2020-12-14 19:22:06 +06:00
parent 86552d427c
commit 5fcbe50e39

View File

@ -3,6 +3,9 @@ apply plugin: 'maven-publish'
task javadocsJar(type: Jar) {
classifier = 'javadoc'
}
task sourceJar (type : Jar) {
classifier = 'sources'
}
afterEvaluate {
project.publishing.publications.all {
@ -10,6 +13,7 @@ afterEvaluate {
groupId "${project.group}"
if (it.name.contains('kotlinMultiplatform')) {
artifactId = "${project.name}"
artifact sourceJar
} else {
artifactId = "${project.name}-$name"
}