From 9c30d5a2cc632c847dff60631db130c9bf05cfe8 Mon Sep 17 00:00:00 2001 From: Rick Parker Date: Tue, 8 Feb 2022 10:25:07 +0000 Subject: [PATCH] ENT-6498 Fix API docs dependencies (#7054) --- build.gradle | 2 +- docs/build.gradle | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index bc96ca3e27..4bdd2d8ed7 100644 --- a/build.gradle +++ b/build.gradle @@ -100,7 +100,7 @@ buildscript { ext.hibernate_version = '5.4.3.Final' ext.h2_version = '1.4.199' // Update docs if renamed or removed. 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.dependency_checker_version = '5.2.0' ext.commons_collections_version = '4.3' diff --git a/docs/build.gradle b/docs/build.gradle index aa50560300..94fd4e6043 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -5,6 +5,10 @@ apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'maven-publish' apply plugin: 'com.jfrog.artifactory' +dependencies { + compile rootProject +} + def internalPackagePrefixes(sourceDirs) { def prefixes = [] // 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 { - it.configure { + it.configuration { moduleName = 'corda' - processConfigurations = ['compile'] - sourceDirs = dokkaSourceDirs + dokkaSourceDirs.collect { sourceDir -> + sourceRoot { + path = sourceDir.path + } + } includes = ['packages.md'] jdkVersion = 8 externalDocumentationLink { @@ -52,7 +59,7 @@ task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) { url = new URL("https://www.bouncycastle.org/docs/docs1.5on/") } internalPackagePrefixes.collect { packagePrefix -> - packageOptions { + perPackageOption { prefix = packagePrefix suppress = true }