ENT-6498 Fix API docs dependencies (#7054)

This commit is contained in:
Rick Parker 2022-02-08 10:25:07 +00:00 committed by GitHub
parent fa739fc467
commit 9c30d5a2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View File

@ -100,7 +100,7 @@ buildscript {
ext.hibernate_version = '5.4.3.Final' ext.hibernate_version = '5.4.3.Final'
ext.h2_version = '1.4.199' // Update docs if renamed or removed. ext.h2_version = '1.4.199' // Update docs if renamed or removed.
ext.rxjava_version = '1.3.8' ext.rxjava_version = '1.3.8'
ext.dokka_version = '0.9.17' ext.dokka_version = '0.10.1'
ext.eddsa_version = '0.3.0' ext.eddsa_version = '0.3.0'
ext.dependency_checker_version = '5.2.0' ext.dependency_checker_version = '5.2.0'
ext.commons_collections_version = '4.3' ext.commons_collections_version = '4.3'

View File

@ -5,6 +5,10 @@ apply plugin: 'net.corda.plugins.publish-utils'
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory' apply plugin: 'com.jfrog.artifactory'
dependencies {
compile rootProject
}
def internalPackagePrefixes(sourceDirs) { def internalPackagePrefixes(sourceDirs) {
def prefixes = [] def prefixes = []
// Kotlin allows packages to deviate from the directory structure, but let's assume they don't: // Kotlin allows packages to deviate from the directory structure, but let's assume they don't:
@ -36,10 +40,13 @@ task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
} }
[dokka, dokkaJavadoc].collect { [dokka, dokkaJavadoc].collect {
it.configure { it.configuration {
moduleName = 'corda' moduleName = 'corda'
processConfigurations = ['compile'] dokkaSourceDirs.collect { sourceDir ->
sourceDirs = dokkaSourceDirs sourceRoot {
path = sourceDir.path
}
}
includes = ['packages.md'] includes = ['packages.md']
jdkVersion = 8 jdkVersion = 8
externalDocumentationLink { externalDocumentationLink {
@ -52,7 +59,7 @@ task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
url = new URL("https://www.bouncycastle.org/docs/docs1.5on/") url = new URL("https://www.bouncycastle.org/docs/docs1.5on/")
} }
internalPackagePrefixes.collect { packagePrefix -> internalPackagePrefixes.collect { packagePrefix ->
packageOptions { perPackageOption {
prefix = packagePrefix prefix = packagePrefix
suppress = true suppress = true
} }