From 6729a40289494ddb7b748290d7dd9faff6fdf6cc Mon Sep 17 00:00:00 2001 From: Ronan Browne Date: Thu, 20 Jun 2024 17:00:48 +0100 Subject: [PATCH] ENT-11382: Add missing Pom meta data and JavaDoc Jars (#7758) * ENT-11382: fix pom generation * ENT-11382: Add missing JavaDoc publications --- .../groovy/corda.common-publishing.gradle | 32 +++++++++++++++++++ confidential-identities/build.gradle | 1 + finance/contracts/build.gradle | 1 + finance/workflows/build.gradle | 1 + 4 files changed, 35 insertions(+) diff --git a/buildSrc/src/main/groovy/corda.common-publishing.gradle b/buildSrc/src/main/groovy/corda.common-publishing.gradle index 11e35d45cc..20b2d4be8d 100644 --- a/buildSrc/src/main/groovy/corda.common-publishing.gradle +++ b/buildSrc/src/main/groovy/corda.common-publishing.gradle @@ -5,6 +5,38 @@ import groovy.transform.CompileStatic if (System.getenv('CORDA_ARTIFACTORY_USERNAME') != null || project.hasProperty('cordaArtifactoryUsername')) { logger.info("Internal R3 user - resolving publication build dependencies from internal plugins") pluginManager.apply('com.r3.internal.gradle.plugins.r3Publish') + afterEvaluate { + publishing { + publications { + configureEach { + def repo = "https://github.com/corda/corda" + pom { + description = project.description + name = project.name + url = repo + scm { + url = repo + } + licenses { + license { + name = 'Apache-2.0' + url = 'https://www.apache.org/licenses/LICENSE-2.0' + distribution = 'repo' + } + } + + developers { + developer { + id = 'R3' + name = 'R3' + email = 'dev@corda.net' + } + } + } + } + } + } + } } else { logger.info("External user - using standard maven publishing") pluginManager.apply('maven-publish') diff --git a/confidential-identities/build.gradle b/confidential-identities/build.gradle index 4c7cd9e050..616fffc0c5 100644 --- a/confidential-identities/build.gradle +++ b/confidential-identities/build.gradle @@ -47,6 +47,7 @@ publishing { maven(MavenPublication) { artifactId 'corda-confidential-identities' from components.cordapp + artifact javadocJar } } } diff --git a/finance/contracts/build.gradle b/finance/contracts/build.gradle index 345d641d84..46845fd014 100644 --- a/finance/contracts/build.gradle +++ b/finance/contracts/build.gradle @@ -64,6 +64,7 @@ publishing { maven(MavenPublication) { artifactId 'corda-finance-contracts' from components.cordapp + artifact javadocJar } } } diff --git a/finance/workflows/build.gradle b/finance/workflows/build.gradle index 602248fc2c..d52deea15a 100644 --- a/finance/workflows/build.gradle +++ b/finance/workflows/build.gradle @@ -93,6 +93,7 @@ publishing { maven(MavenPublication) { artifactId 'corda-finance-workflows' from components.cordapp + artifact javadocJar } } }