publishing { publications { "${project.name}"(MavenPublication) { from components.java pom { artifactId = project.name name = project.name version = project.version 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' url = 'https://xbib.org/joerg' } } 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}" } }