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()