2018-12-27 03:40:53 +00:00
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
apply plugin: 'signing'
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
classifier = 'sources'
|
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar) {
|
|
|
|
from javadoc
|
|
|
|
classifier = 'javadoc'
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
maven(MavenPublication) {
|
|
|
|
from components.java
|
|
|
|
groupId "${project.group}"
|
|
|
|
artifactId "${project.name}"
|
|
|
|
version "${project.version}"
|
|
|
|
|
|
|
|
artifact sourcesJar
|
|
|
|
artifact javadocJar
|
|
|
|
|
|
|
|
pom.withXml {
|
2018-12-29 10:45:51 +00:00
|
|
|
asNode().children().last() + {
|
|
|
|
resolveStrategy = Closure.DELEGATE_FIRST
|
2019-03-21 00:51:52 +00:00
|
|
|
name "${project_public_name}"
|
|
|
|
description "${project_public_description}"
|
2018-12-29 10:45:51 +00:00
|
|
|
url "https://insanusmokrassar.github.io/${project.name}"
|
|
|
|
|
|
|
|
scm {
|
|
|
|
connection "scm:git:git://github.com/insanusmokrassar/${project.name}.git"
|
|
|
|
developerConnection "scm:git:[fetch=]https://github.com/insanusmokrassar/${project.name}.git[push=]ssh:git@github.com:insanusmokrassar/${project.name}.git"
|
|
|
|
url "https://github.com/insanusmokrassar/${project.name}"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id "InsanusMokrassar"
|
|
|
|
name "Ovsyannikov Alexey"
|
|
|
|
email "ovsyannikov.alexey95@gmail.com"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name 'The Apache Software License, Version 2.0'
|
|
|
|
url 'https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/LICENSE'
|
|
|
|
distribution 'repo'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-12-27 03:40:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
signing {
|
|
|
|
useGpgCmd()
|
|
|
|
sign publishing.publications.maven
|
|
|
|
}
|