2016-10-03 14:25:26 +02:00
|
|
|
|
2016-11-13 19:58:03 +01:00
|
|
|
task xbibUpload(type: Upload, dependsOn: build) {
|
2016-10-03 14:25:26 +02:00
|
|
|
configuration = configurations.archives
|
|
|
|
uploadDescriptor = true
|
|
|
|
repositories {
|
|
|
|
if (project.hasProperty('xbibUsername')) {
|
|
|
|
mavenDeployer {
|
|
|
|
configuration = configurations.wagon
|
2017-08-14 23:00:13 +02:00
|
|
|
repository(url: uri('sftp://xbib.org/repository')) {
|
2016-10-03 14:25:26 +02:00
|
|
|
authentication(userName: xbibUsername, privateKey: xbibPrivateKey)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-13 19:58:03 +01:00
|
|
|
task sonatypeUpload(type: Upload, dependsOn: build) {
|
2016-10-03 14:25:26 +02:00
|
|
|
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 {
|
2016-10-29 20:00:22 +02:00
|
|
|
groupId project.group
|
|
|
|
artifactId project.name
|
|
|
|
version project.version
|
|
|
|
name project.name
|
2016-10-03 14:25:26 +02:00
|
|
|
description projectDescription
|
|
|
|
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 'The Apache License, Version 2.0'
|
|
|
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-14 23:00:13 +02:00
|
|
|
|
|
|
|
nexusStaging {
|
|
|
|
packageGroup = "org.xbib"
|
|
|
|
}
|