64 lines
2.3 KiB
Groovy
64 lines
2.3 KiB
Groovy
|
|
||
|
task xbibUpload(type: Upload) {
|
||
|
configuration = configurations.archives
|
||
|
uploadDescriptor = true
|
||
|
repositories {
|
||
|
if (project.hasProperty("xbibUsername")) {
|
||
|
mavenDeployer {
|
||
|
configuration = configurations.wagon
|
||
|
repository(url: 'scpexe://xbib.org/repository') {
|
||
|
authentication(userName: xbibUsername, privateKey: xbibPrivateKey)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
task sonaTypeUpload(type: Upload) {
|
||
|
configuration = configurations.archives
|
||
|
uploadDescriptor = true
|
||
|
repositories {
|
||
|
if (project.hasProperty('ossrhUsername')) {
|
||
|
mavenDeployer {
|
||
|
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
||
|
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2') {
|
||
|
authentication(userName: ossrhUsername, password: ossrhPassword)
|
||
|
}
|
||
|
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots') {
|
||
|
authentication(userName: ossrhUsername, password: ossrhPassword)
|
||
|
}
|
||
|
pom.project {
|
||
|
name name
|
||
|
description description
|
||
|
packaging 'jar'
|
||
|
inceptionYear '2012'
|
||
|
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 'The Apache License, Version 2.0'
|
||
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|