From fcb2f4ae72bdc62df37e61360d2d206c36717612 Mon Sep 17 00:00:00 2001 From: aSemy <897017+aSemy@users.noreply.github.com> Date: Tue, 25 Apr 2023 22:27:35 +0200 Subject: Tidy/remove unnecessary imports and suppressions (#2975) --- .../kotlin/org/jetbrains/dokka/gradle/GradlePackageOptionsBuilder.kt | 2 -- .../main/kotlin/org/jetbrains/dokka/gradle/dokkaBootstrapFactory.kt | 2 -- .../main/kotlin/org/jetbrains/dokka/gradle/dokkaSourceSetIDFactory.kt | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org') diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradlePackageOptionsBuilder.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradlePackageOptionsBuilder.kt index c853181d..a6148a64 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradlePackageOptionsBuilder.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradlePackageOptionsBuilder.kt @@ -1,5 +1,3 @@ -@file:Suppress("FunctionName") - package org.jetbrains.dokka.gradle import org.gradle.api.Project diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/dokkaBootstrapFactory.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/dokkaBootstrapFactory.kt index 65c0cd67..b32905ef 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/dokkaBootstrapFactory.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/dokkaBootstrapFactory.kt @@ -1,5 +1,3 @@ -@file:Suppress("FunctionName") - package org.jetbrains.dokka.gradle import org.gradle.api.artifacts.Configuration diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/dokkaSourceSetIDFactory.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/dokkaSourceSetIDFactory.kt index 41cc19e3..052dab35 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/dokkaSourceSetIDFactory.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/dokkaSourceSetIDFactory.kt @@ -1,5 +1,3 @@ -@file:Suppress("FunctionName") - package org.jetbrains.dokka.gradle import org.gradle.api.NamedDomainObjectFactory @@ -10,6 +8,7 @@ internal fun DokkaSourceSetID(task: Task, sourceSetName: String): DokkaSourceSet return DokkaSourceSetID(task.path, sourceSetName) } +@Suppress("FunctionName") internal fun Task.DokkaSourceSetIdFactory() = NamedDomainObjectFactory { name -> DokkaSourceSetID(this@DokkaSourceSetIdFactory, name) } -- cgit