ENT-11382: Add missing Pom meta data and JavaDoc Jars (#7758)

* ENT-11382: fix pom generation
* ENT-11382: Add missing JavaDoc publications
This commit is contained in:
Ronan Browne 2024-06-20 17:00:48 +01:00 committed by GitHub
parent 2d8e68211f
commit 6729a40289
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 35 additions and 0 deletions

View File

@ -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')

View File

@ -47,6 +47,7 @@ publishing {
maven(MavenPublication) {
artifactId 'corda-confidential-identities'
from components.cordapp
artifact javadocJar
}
}
}

View File

@ -64,6 +64,7 @@ publishing {
maven(MavenPublication) {
artifactId 'corda-finance-contracts'
from components.cordapp
artifact javadocJar
}
}
}

View File

@ -93,6 +93,7 @@ publishing {
maven(MavenPublication) {
artifactId 'corda-finance-workflows'
from components.cordapp
artifact javadocJar
}
}
}