2019-05-21 10:14:09 +00:00
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
apply plugin: 'signing'
|
|
|
|
|
|
|
|
task javadocJar(type: Jar) {
|
|
|
|
archiveClassifier.set 'javadoc'
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm("jvm8") {
|
|
|
|
mavenPublication {
|
|
|
|
groupId "${project.group}"
|
|
|
|
artifactId "${project.name}"
|
|
|
|
version "${project.version}"
|
|
|
|
|
|
|
|
artifact(javadocJar)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
jvm8 {
|
|
|
|
pom.withXml {
|
|
|
|
asNode().children().last() + {
|
|
|
|
resolveStrategy = Closure.DELEGATE_FIRST
|
|
|
|
name "${project_public_name}"
|
|
|
|
description "${project_public_description}"
|
|
|
|
|
|
|
|
scm {
|
2019-10-08 17:17:51 +00:00
|
|
|
developerConnection "scm:git:[fetch=]${project_vcs_base}/${project.name}.git[push=]ssh:git@github.com:insanusmokrassar/${project.name}.git"
|
|
|
|
url "${project_vcs_base}/${project.name}"
|
2019-05-21 10:14:09 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id "InsanusMokrassar"
|
|
|
|
name "Ovsyannikov Alexey"
|
|
|
|
email "ovsyannikov.alexey95@gmail.com"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
2019-10-08 17:17:51 +00:00
|
|
|
name "The Apache Software License, Version 2.0"
|
|
|
|
url "${project_vcs_base}/${project.name}/blob/master/LICENSE"
|
|
|
|
distribution "repo"
|
2019-05-21 10:14:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
signing {
|
|
|
|
useGpgCmd()
|
|
|
|
sign publishing.publications.jvm8
|
|
|
|
}
|