aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-03-05 15:23:38 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-23 09:25:36 +0100
commit9fab2c5876d43d2cf93cdc1b965e188ca74baf28 (patch)
treec2cbe5eed806b5aa284adb66b4445bd5f8707432 /runners/gradle-plugin/src/main/kotlin
parent2aeb60184eaea9bd2fa305f926bb0ceba9deaa48 (diff)
downloaddokka-9fab2c5876d43d2cf93cdc1b965e188ca74baf28.tar.gz
dokka-9fab2c5876d43d2cf93cdc1b965e188ca74baf28.tar.bz2
dokka-9fab2c5876d43d2cf93cdc1b965e188ca74baf28.zip
Adds base plugin loading in gradle and cli
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt4
1 files changed, 3 insertions, 1 deletions
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<Project> {
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)
}