SDI/maven.publish.gradle

57 lines
1.7 KiB
Groovy
Raw Normal View History

2019-11-20 14:46:32 +00:00
apply plugin: 'maven-publish'
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
2020-01-19 08:07:11 +00:00
description "Simple library for creating dependencies tree using Kotlin Serialization"
name "Simple Dependency Injector"
2019-11-22 04:11:31 +00:00
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
}
}
}
}
2019-11-22 04:11:31 +00:00
}