ES-2480: fix doc publication of .tgz archive (#7759)

* ES-2480: fix doc publication
This commit is contained in:
Ronan Browne 2024-06-28 09:04:08 +01:00 committed by GitHub
parent 7e3e07a5af
commit a94470639b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,8 @@
import org.apache.tools.ant.taskdefs.condition.Os
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'
dependencies {
implementation rootProject
@ -97,8 +99,6 @@ task archiveApiDocs(type: Tar) {
publishing {
publications {
if (System.getProperty('publishApiDocs') != null) {
apply plugin: 'corda.common-publishing'
archivedApiDocs(MavenPublication) {
artifact archiveApiDocs {
artifactId archivedApiDocsBaseFilename
@ -107,3 +107,20 @@ publishing {
}
}
}
artifactoryPublish {
publications('archivedApiDocs')
version = version.replaceAll('-SNAPSHOT', '')
publishPom = false
}
artifactory {
publish {
contextUrl = artifactory_contextUrl
repository {
repoKey = 'corda-dependencies-dev'
username = System.getenv('CORDA_ARTIFACTORY_USERNAME')
password = System.getenv('CORDA_ARTIFACTORY_PASSWORD')
}
}
}