From 9fab2c5876d43d2cf93cdc1b965e188ca74baf28 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Thu, 5 Mar 2020 15:23:38 +0100 Subject: Adds base plugin loading in gradle and cli --- .../gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runners/gradle-plugin/src/main') diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt index 71a02843..f4ffdab6 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt @@ -17,7 +17,9 @@ open class DokkaPlugin : Plugin { override fun apply(project: Project) { loadDokkaVersion() val dokkaRuntimeConfiguration = addConfiguration(project) - val pluginsConfiguration = project.configurations.create("dokkaPlugins") + val pluginsConfiguration = project.configurations.create("dokkaPlugins").apply { + defaultDependencies { it.add(project.dependencies.create("org.jetbrains.dokka:dokka-base:${DokkaVersion.version}")) } + } addTasks(project, dokkaRuntimeConfiguration, pluginsConfiguration, DokkaTask::class.java) } -- cgit