krontab/maven.publish.gradle

57 lines
1.7 KiB
Groovy
Raw Normal View History

2019-05-21 10:14:09 +00:00
apply plugin: 'maven-publish'
2019-11-19 19:36:10 +00:00
task javadocsJar(type: Jar) {
classifier = 'javadoc'
2019-05-21 10:14:09 +00:00
}
2019-11-19 19:36:10 +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-05-21 10:14:09 +00:00
}
}
}
publishing {
2019-11-19 19:36:10 +00:00
publications.all {
artifact javadocsJar
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
2020-01-08 08:28:57 +00:00
description "It is an analog of crontab util for Kotlin Coroutines"
name "Krontab"
url "https://git.insanusmokrassar.com/InsanusMokrassar/krontab"
2019-05-21 10:14:09 +00:00
2019-11-19 19:36:10 +00:00
scm {
2020-01-08 08:28:57 +00:00
developerConnection "scm:git:[fetch=]https://git.insanusmokrassar.com/InsanusMokrassar/krontab.git[push=]https://git.insanusmokrassar.com/InsanusMokrassar/krontab.git"
url "https://git.insanusmokrassar.com/InsanusMokrassar/krontab.git"
2019-11-19 19:36:10 +00:00
}
developers {
2020-01-08 08:28:57 +00:00
developer {
id "InsanusMokrassar"
name "Ovsiannikov Aleksei"
email "ovsyannikov.alexey95@gmail.com"
}
2019-11-19 19:36:10 +00:00
}
2019-05-21 10:14:09 +00:00
2019-11-19 19:36:10 +00:00
licenses {
2020-01-08 08:28:57 +00:00
license {
name "Apache Software License 2.0"
url "https://git.insanusmokrassar.com/InsanusMokrassar/krontab/src/master/LICENSE"
}
2019-05-21 10:14:09 +00:00
}
}
}
}
2020-01-08 08:28:57 +00:00
}