aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-05-18 10:54:14 +0200
committerIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-05-18 10:54:14 +0200
commit6c930d08b3acdbc8430012aca2c77f07d083525a (patch)
tree5d1d205f3f1217f876c25bde54660fcd77670a07 /runners/gradle-plugin
parentc3bb7e77a0de1e677d40e9d7674a9325eaf7a34d (diff)
downloaddokka-6c930d08b3acdbc8430012aca2c77f07d083525a.tar.gz
dokka-6c930d08b3acdbc8430012aca2c77f07d083525a.tar.bz2
dokka-6c930d08b3acdbc8430012aca2c77f07d083525a.zip
Fix new Qodana inspections after the update
Diffstat (limited to 'runners/gradle-plugin')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaArtifacts.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaArtifacts.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaArtifacts.kt
index 6574eeb5..3349f996 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaArtifacts.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaArtifacts.kt
@@ -1,12 +1,13 @@
package org.jetbrains.dokka.gradle
import org.gradle.api.Project
+import org.gradle.api.artifacts.Dependency
import org.jetbrains.dokka.DokkaVersion
internal val Project.dokkaArtifacts get() = DokkaArtifacts(this)
internal class DokkaArtifacts(private val project: Project) {
- private fun fromModuleName(name: String) =
+ private fun fromModuleName(name: String): Dependency =
project.dependencies.create("org.jetbrains.dokka:$name:${DokkaVersion.version}")
val allModulesPage get() = fromModuleName("all-modules-page-plugin")