jacc/gradle/publish.gradle

52 lines
2 KiB
Groovy
Raw Permalink Normal View History

2016-10-22 23:50:38 +02:00
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 {
2020-05-13 15:54:26 +02:00
groupId project.group
artifactId project.name
version project.version
name project.name
2016-10-22 23:50:38 +02:00
description description
packaging 'jar'
2020-05-13 15:54:26 +02:00
inceptionYear '2016'
2016-10-22 23:50:38 +02:00
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 {
2016-10-25 22:27:05 +02:00
name 'BSD 3-Clause License'
url 'https://opensource.org/licenses/BSD-3-Clause'
2016-10-22 23:50:38 +02:00
}
}
}
}
}
}
}