datastructures/gradle/publish/maven.gradle

53 lines
1.7 KiB
Groovy
Raw Permalink Normal View History

2020-09-12 22:42:03 +02:00
publishing {
publications {
"${project.name}"(MavenPublication) {
2020-09-12 22:42:03 +02:00
from components.java
pom {
artifactId = project.name
2020-09-12 22:42:03 +02:00
name = project.name
2023-10-04 10:34:24 +02:00
version = project.version
2020-09-12 22:42:03 +02:00
description = rootProject.ext.description
url = rootProject.ext.url
inceptionYear = rootProject.ext.inceptionYear
packaging = 'jar'
organization {
name = 'xbib'
url = 'https://xbib.org'
}
developers {
developer {
id = 'jprante'
name = 'Jörg Prante'
email = 'joergprante@gmail.com'
2023-05-24 20:16:02 +02:00
url = 'https://xbib.org/joerg'
2020-09-12 22:42:03 +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 {
sign publishing.publications."${project.name}"
2020-09-12 22:42:03 +02:00
}
}