1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 03:58:44 +00:00

fix dokka config

This commit is contained in:
InsanusMokrassar 2021-03-16 22:33:42 +06:00
parent 60c3a0d7af
commit 5c11b60ea6
2 changed files with 10 additions and 3 deletions

View File

@ -36,7 +36,7 @@ kotlin {
dependencies { dependencies {
implementation kotlin('stdlib') implementation kotlin('stdlib')
project.parent.subprojects.forEach { rootProject.subprojects.forEach {
if (it != project) { if (it != project) {
api it api it
} }
@ -82,11 +82,11 @@ tasks.dokkaHtml {
} }
named("jsMain") { named("jsMain") {
sourceRoots.setFrom(findSourcesWithName("jsMain", "commonMain")) sourceRoots.setFrom(findSourcesWithName("jsMain"))
} }
named("jvmMain") { named("jvmMain") {
sourceRoots.setFrom(findSourcesWithName("jvmMain", "commonMain")) sourceRoots.setFrom(findSourcesWithName("jvmMain"))
} }
} }
} }

View File

@ -1,4 +1,11 @@
pluginManagement { pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.dokka") {
useModule("org.jetbrains.dokka:dokka-gradle-plugin:${requested.version}")
}
}
}
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
jcenter() jcenter()