SDI/maven.publish.gradle

63 lines
1.8 KiB
Groovy
Raw Normal View History

2019-11-20 14:46:32 +00:00
apply plugin: 'maven-publish'
apply plugin: 'signing'
task javadocsJar(type: Jar) {
classifier = 'javadoc'
}
afterEvaluate {
project.publishing.publications.all {
// rename artifacts
groupId "${project.group}"
if (it.name.contains('kotlinMultiplatform')) {
artifactId = "${project.name}"
} else {
artifactId = "${project.name}-$name"
}
}
}
publishing {
publications.all {
artifact javadocsJar
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
2019-11-22 04:11:31 +00:00
description "Simple DI library"
name "Simple Dependency Injection"
url "https://git.insanusmokrassar.com/InsanusMokrassar/SDI"
2019-11-20 14:46:32 +00:00
scm {
2019-11-22 04:11:31 +00:00
developerConnection "scm:git:[fetch=]https://git.insanusmokrassar.com/InsanusMokrassar/SDI.git[push=]https://git.insanusmokrassar.com/InsanusMokrassar/SDI.git"
url "https://git.insanusmokrassar.com/InsanusMokrassar/SDI.git"
2019-11-20 14:46:32 +00:00
}
developers {
2019-11-22 04:11:31 +00:00
developer {
id "InsanusMokrassar"
name "Ovsiannikov Aleksei"
email "ovsyannikov.alexey95@gmail.com"
}
2019-11-20 14:46:32 +00:00
}
licenses {
2019-11-22 04:11:31 +00:00
license {
name "Apache Software License 2.0"
url "https://git.insanusmokrassar.com/PostsSystem/SDI/src/master/LICENSE"
}
2019-11-20 14:46:32 +00:00
}
}
}
}
}
signing {
useGpgCmd()
sign(publishing.publications)
2019-11-22 04:11:31 +00:00
}