From 5c11b60ea6bc4b82ed534b8625da20ff18213679 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 16 Mar 2021 22:33:42 +0600 Subject: [PATCH] fix dokka config --- docs/build.gradle | 6 +++--- settings.gradle | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/build.gradle b/docs/build.gradle index 24cfebd52a..4e89f2c27e 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -36,7 +36,7 @@ kotlin { dependencies { implementation kotlin('stdlib') - project.parent.subprojects.forEach { + rootProject.subprojects.forEach { if (it != project) { api it } @@ -82,11 +82,11 @@ tasks.dokkaHtml { } named("jsMain") { - sourceRoots.setFrom(findSourcesWithName("jsMain", "commonMain")) + sourceRoots.setFrom(findSourcesWithName("jsMain")) } named("jvmMain") { - sourceRoots.setFrom(findSourcesWithName("jvmMain", "commonMain")) + sourceRoots.setFrom(findSourcesWithName("jvmMain")) } } } diff --git a/settings.gradle b/settings.gradle index 5ac47a3651..33e593255e 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,4 +1,11 @@ pluginManagement { + resolutionStrategy { + eachPlugin { + if (requested.id.id == "org.jetbrains.dokka") { + useModule("org.jetbrains.dokka:dokka-gradle-plugin:${requested.version}") + } + } + } repositories { gradlePluginPortal() jcenter()