SauceNaoAPI/maven.publish.gradle

53 lines
1.5 KiB
Groovy
Raw Normal View History

2019-02-20 04:06:04 +00:00
apply plugin: 'maven-publish'
2020-08-22 17:00:07 +00:00
task javadocsJar(type: Jar) {
classifier = 'javadoc'
2019-02-20 04:06:04 +00:00
}
2020-08-22 17:00:07 +00:00
afterEvaluate {
project.publishing.publications.all {
// rename artifacts
groupId "${project.group}"
if (it.name.contains('kotlinMultiplatform')) {
artifactId = "${project.name}"
} else {
artifactId = "${project.name}-$name"
}
}
2019-02-20 04:06:04 +00:00
}
publishing {
2020-08-22 17:00:07 +00:00
publications.all {
artifact javadocsJar
2019-02-20 04:06:04 +00:00
2020-08-22 17:00:07 +00:00
pom {
description = "SauceNao API library"
name = "SauceNao API"
url = "https://insanusmokrassar.github.io/${project.name}"
2019-02-20 04:06:04 +00:00
2020-08-22 17:00:07 +00:00
scm {
developerConnection = "scm:git:[fetch=]https://github.com/insanusmokrassar/${project.name}.git[push=]https://github.com/insanusmokrassar/${project.name}.git"
url = "https://github.com/insanusmokrassar/${project.name}.git"
}
2019-02-20 04:06:04 +00:00
2020-08-22 17:00:07 +00:00
developers {
developer {
id = "InsanusMokrassar"
name = "Ovsyannikov Alexey"
email = "ovsyannikov.alexey95@gmail.com"
2019-02-20 04:06:04 +00:00
}
2020-08-22 17:00:07 +00:00
}
2019-02-20 04:06:04 +00:00
2020-08-22 17:00:07 +00:00
licenses {
license {
name = "Apache Software License 2.0"
url = "https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/LICENSE"
2019-02-20 04:06:04 +00:00
}
2020-08-22 17:00:07 +00:00
2019-02-20 04:06:04 +00:00
}
}
}
2020-08-22 17:00:07 +00:00
}