core/postssystem.exposed/maven.publish.gradle

57 lines
1.7 KiB
Groovy
Raw Normal View History

apply plugin: 'maven-publish'
2020-04-10 07:12:55 +00:00
task javadocsJar(type: Jar) {
classifier = 'javadoc'
}
2020-04-10 07:12:55 +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"
}
}
}
publishing {
2020-04-10 07:12:55 +00:00
publications.all {
artifact javadocsJar
2020-01-31 12:14:01 +00:00
2020-04-10 07:12:55 +00:00
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
2020-01-31 12:14:01 +00:00
2020-04-10 07:12:55 +00:00
description "Exposed realisation for PostsSystem Core"
name "PostsSystem Core Exposed realization"
url "https://git.insanusmokrassar.com/PostsSystem/Core/"
2020-01-31 12:14:01 +00:00
2020-04-10 07:12:55 +00:00
scm {
developerConnection "scm:git:[fetch=]https://git.insanusmokrassar.com/PostsSystem/Core/.git[push=]https://git.insanusmokrassar.com/PostsSystem/Core/.git"
url "https://git.insanusmokrassar.com/PostsSystem/Core/.git"
}
2020-04-10 07:12:55 +00:00
developers {
developer {
id "InsanusMokrassar"
name "Ovsiannikov Aleksei"
email "ovsyannikov.alexey95@gmail.com"
}
2020-04-10 07:12:55 +00:00
}
2020-04-10 07:12:55 +00:00
licenses {
license {
name "Apache Software License 2.0"
url "https://git.insanusmokrassar.com/PostsSystem/Core/src/master/LICENSE"
}
2020-04-10 07:12:55 +00:00
}
}
}
}
}