From a94470639b6a2332978c43b878876e44a22e1e92 Mon Sep 17 00:00:00 2001 From: Ronan Browne Date: Fri, 28 Jun 2024 09:04:08 +0100 Subject: [PATCH] ES-2480: fix doc publication of .tgz archive (#7759) * ES-2480: fix doc publication --- docs/build.gradle | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/build.gradle b/docs/build.gradle index 12a1c72558..6304abc268 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -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') + } + } +}