guice/gradle/publish/maven.gradle

52 lines
1.6 KiB
Groovy
Raw Permalink Normal View History

2021-06-03 19:53:05 +02:00
publishing {
publications {
2023-05-25 22:07:14 +02:00
"${project.name}"(MavenPublication) {
2021-06-03 19:53:05 +02:00
from components.java
pom {
2023-05-25 22:07:14 +02:00
artifactId = project.name
2021-06-03 19:53:05 +02:00
name = project.name
description = rootProject.ext.description
url = rootProject.ext.url
inceptionYear = rootProject.ext.inceptionYear
packaging = 'jar'
organization {
name = 'xbib'
url = 'https://xbib.org'
}
developers {
developer {
2023-05-25 22:07:14 +02:00
id = 'joerg'
2021-06-03 19:53:05 +02:00
name = 'Jörg Prante'
email = 'joergprante@gmail.com'
2023-05-25 22:07:14 +02:00
url = 'https://xbib.org/joerg'
2021-06-03 19:53:05 +02:00
}
}
scm {
url = rootProject.ext.scmUrl
connection = rootProject.ext.scmConnection
developerConnection = rootProject.ext.scmDeveloperConnection
}
issueManagement {
system = rootProject.ext.issueManagementSystem
url = rootProject.ext.issueManagementUrl
}
licenses {
license {
name = rootProject.ext.licenseName
url = rootProject.ext.licenseUrl
distribution = 'repo'
}
}
}
}
}
}
if (project.hasProperty("signing.keyId")) {
apply plugin: 'signing'
signing {
2023-05-25 22:07:14 +02:00
sign publishing.publications."${project.name}"
2021-06-03 19:53:05 +02:00
}
}