diff options
Diffstat (limited to 'runners/android-gradle-plugin')
-rw-r--r-- | runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt index 5646a75f..d26f136e 100644 --- a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt +++ b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt @@ -13,24 +13,24 @@ open class DokkaAndroidPlugin : DokkaPlugin() { val dokkaRuntimeConfiguration = project.configurations.create("dokkaRuntime") val defaultDokkaRuntimeConfiguration = project.configurations.create("defaultDokkaRuntime") + val taskName = "dokka" defaultDokkaRuntimeConfiguration.defaultDependencies{ dependencies -> dependencies.add(project.dependencies.create("org.jetbrains.dokka:dokka-fatjar:${DokkaVersion.version}")) } if(GradleVersion.current() >= GradleVersion.version("4.10")) { - project.tasks.register("dokka", DokkaAndroidTask::class.java).configure { + project.tasks.register(taskName, DokkaAndroidTask::class.java).configure { it.moduleName = project.name - it.outputDirectory = File(project.buildDir, "dokka").absolutePath + it.outputDirectory = File(project.buildDir, taskName).absolutePath } } else { - project.tasks.create("dokka", DokkaAndroidTask::class.java).apply { + project.tasks.create(taskName, DokkaAndroidTask::class.java).apply { moduleName = project.name - outputDirectory = File(project.buildDir, "dokka").absolutePath + outputDirectory = File(project.buildDir, taskName).absolutePath } } project.tasks.withType(DokkaAndroidTask::class.java) { task -> - val passConfiguration = project.container(GradlePassConfigurationImpl::class.java) - task.multiplatform = passConfiguration + task.multiplatform = project.container(GradlePassConfigurationImpl::class.java) task.configuration = GradlePassConfigurationImpl() task.dokkaRuntime = dokkaRuntimeConfiguration task.defaultDokkaRuntime = defaultDokkaRuntimeConfiguration |