mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-05 08:09:33 +00:00
update publish script
This commit is contained in:
@@ -3,6 +3,9 @@ apply plugin: 'maven-publish'
|
|||||||
task javadocsJar(type: Jar) {
|
task javadocsJar(type: Jar) {
|
||||||
classifier = 'javadoc'
|
classifier = 'javadoc'
|
||||||
}
|
}
|
||||||
|
task sourceJar (type : Jar) {
|
||||||
|
classifier = 'sources'
|
||||||
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
project.publishing.publications.all {
|
project.publishing.publications.all {
|
||||||
@@ -10,6 +13,7 @@ afterEvaluate {
|
|||||||
groupId "${project.group}"
|
groupId "${project.group}"
|
||||||
if (it.name.contains('kotlinMultiplatform')) {
|
if (it.name.contains('kotlinMultiplatform')) {
|
||||||
artifactId = "${project.name}"
|
artifactId = "${project.name}"
|
||||||
|
artifact sourceJar
|
||||||
} else {
|
} else {
|
||||||
artifactId = "${project.name}-$name"
|
artifactId = "${project.name}-$name"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user