diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-06-18 17:44:12 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-06-18 17:44:12 +0200 |
commit | ac4d4db037930e266a1a6d27996cd16928395eb1 (patch) | |
tree | 4e200ba1fa883715778a63fbf1bb3493f3aac5e9 /runners/android-gradle-plugin | |
parent | 77cc7997ee93eef9b307984b49895220be355aea (diff) | |
download | dokka-ac4d4db037930e266a1a6d27996cd16928395eb1.tar.gz dokka-ac4d4db037930e266a1a6d27996cd16928395eb1.tar.bz2 dokka-ac4d4db037930e266a1a6d27996cd16928395eb1.zip |
Fix NotSerializableException
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 |