task xbibUpload(type: Upload) { configuration = configurations.archives uploadDescriptor = true repositories { if (project.hasProperty("xbibUsername")) { mavenDeployer { configuration = configurations.wagon repository(url: uri('scpexe://xbib.org/repository')) { authentication(userName: xbibUsername, privateKey: xbibPrivateKey) } } } } } task mavenCentralUpload(type: Upload) { configuration = configurations.archives uploadDescriptor = true repositories { if (project.hasProperty('ossrhUsername')) { mavenDeployer { beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } repository(url: uri(ossrhReleaseUrl)) { authentication(userName: ossrhUsername, password: ossrhPassword) } snapshotRepository(url: uri(ossrhSnapshotUrl)) { authentication(userName: ossrhUsername, password: ossrhPassword) } pom.project { name name description description packaging 'jar' inceptionYear '2016' url scmUrl organization { name 'xbib' url 'http://xbib.org' } developers { developer { id user name 'Jörg Prante' email 'joergprante@gmail.com' url 'https://github.com/jprante' } } scm { url scmUrl connection scmConnection developerConnection scmDeveloperConnection } licenses { license { name 'Affero GNU Public License Version 3' url 'http://www.gnu.org/licenses/agpl-3.0.html' } } } } } } }