mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-22 16:23:55 +00:00
66 lines
1.7 KiB
Groovy
66 lines
1.7 KiB
Groovy
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
|
|
|
|
description "${project_public_description}"
|
|
name "${project_public_name}"
|
|
url "${project_url}"
|
|
|
|
scm {
|
|
developerConnection "scm:git:[fetch=]${project_vcs}[push=]${project_vcs}"
|
|
url "${project_vcs}"
|
|
}
|
|
|
|
developers {
|
|
developer {
|
|
id "InsanusMokrassar"
|
|
name "Ovsyannikov Alexey"
|
|
email "ovsyannikov.alexey95@gmail.com"
|
|
}
|
|
developer {
|
|
id "mi-ast"
|
|
name "Michail Astafiev"
|
|
email "astaf65@gmail.com"
|
|
}
|
|
}
|
|
|
|
licenses {
|
|
license {
|
|
name "The Apache Software License, Version 2.0"
|
|
url "${project_url}/src/master/LICENSE"
|
|
distribution "repo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
signing {
|
|
useGpgCmd()
|
|
sign(publishing.publications)
|
|
}
|