1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-14 21:00:15 +00:00

update publication scripts

This commit is contained in:
2021-01-13 14:21:35 +06:00
parent d1993842c3
commit d837c9d605
10 changed files with 56 additions and 10 deletions

View File

@@ -1,8 +1,12 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'
task javadocsJar(type: Jar) {
classifier = 'javadoc'
}
task sourceJar (type : Jar) {
classifier = 'sources'
}
afterEvaluate {
project.publishing.publications.all {
@@ -10,6 +14,7 @@ afterEvaluate {
groupId "${project.group}"
if (it.name.contains('kotlinMultiplatform')) {
artifactId = "${project.name}"
artifact sourceJar
} else {
artifactId = "${project.name}-$name"
}
@@ -62,4 +67,9 @@ publishing {
}
}
}
}
signing {
useGpgCmd()
publishing.publications.forEach { sign it }
}