From 6c930d08b3acdbc8430012aca2c77f07d083525a Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Wed, 18 May 2022 10:54:14 +0200 Subject: Fix new Qodana inspections after the update --- .../src/main/kotlin/org/jetbrains/dokka/gradle/DokkaArtifacts.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains') 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") -- cgit