From f5b7797255576e5f1c230e2ca3fcb5f4e602387c Mon Sep 17 00:00:00 2001 From: Goooler Date: Mon, 21 Feb 2022 22:01:06 +0800 Subject: Code cleanups (#2165) --- .../src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaLeafTask.kt | 2 +- .../org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderFactory.kt | 1 - .../main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka') diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaLeafTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaLeafTask.kt index f10f32ec..74125956 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaLeafTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaLeafTask.kt @@ -1,4 +1,4 @@ -package org.jetbrains.dokka.gradle; +package org.jetbrains.dokka.gradle import org.gradle.api.NamedDomainObjectContainer import org.gradle.api.internal.plugins.DslObject diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderFactory.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderFactory.kt index 49c489c7..e1b93ae8 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderFactory.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderFactory.kt @@ -1,7 +1,6 @@ package org.jetbrains.dokka.gradle import org.gradle.api.NamedDomainObjectFactory -import org.gradle.api.Task @Suppress("ObjectLiteralToLambda") // Will fail at runtime in Gradle versions <= 6.6 fun AbstractDokkaTask.gradleDokkaSourceSetBuilderFactory(): NamedDomainObjectFactory = diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt index 6dec5f89..2ddd8056 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt @@ -17,7 +17,7 @@ class GradleSourceLinkBuilder( val localDirectory: Property = project.objects.safeProperty() @Input - val remoteUrl: Property = project.objects.safeProperty() + val remoteUrl: Property = project.objects.safeProperty() @Optional @Input -- cgit