mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
ES-2480: fix doc publication of .tgz archive (#7759)
* ES-2480: fix doc publication
This commit is contained in:
parent
7e3e07a5af
commit
a94470639b
@ -1,6 +1,8 @@
|
|||||||
import org.apache.tools.ant.taskdefs.condition.Os
|
import org.apache.tools.ant.taskdefs.condition.Os
|
||||||
|
|
||||||
apply plugin: 'org.jetbrains.dokka'
|
apply plugin: 'org.jetbrains.dokka'
|
||||||
|
apply plugin: 'maven-publish'
|
||||||
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation rootProject
|
implementation rootProject
|
||||||
@ -97,8 +99,6 @@ task archiveApiDocs(type: Tar) {
|
|||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
if (System.getProperty('publishApiDocs') != null) {
|
if (System.getProperty('publishApiDocs') != null) {
|
||||||
apply plugin: 'corda.common-publishing'
|
|
||||||
|
|
||||||
archivedApiDocs(MavenPublication) {
|
archivedApiDocs(MavenPublication) {
|
||||||
artifact archiveApiDocs {
|
artifact archiveApiDocs {
|
||||||
artifactId archivedApiDocsBaseFilename
|
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')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user