From 6dc022a9dec8429c5555e5b6082bf1e79b393891 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Thu, 13 Jun 2019 11:58:04 +0200 Subject: Fix for Gradle incremental builds --- .../src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt | 5 +++-- .../org/jetbrains/dokka/gradle/configurationImplementations.kt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'runners') diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt index 38073c99..0d191d9a 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt @@ -49,6 +49,7 @@ open class DokkaTask : DefaultTask() { @Input var outputFormat: String = "html" + @Input var outputDirectory: String = "" var dokkaRuntime: Configuration? = null @@ -69,12 +70,12 @@ open class DokkaTask : DefaultTask() { var multiplatform: NamedDomainObjectContainer @Suppress("UNCHECKED_CAST") - get() = DslObject(this).extensions.getByName(MULTIPLATFORM_EXTENSION_NAME) as NamedDomainObjectContainer + @Input get() = DslObject(this).extensions.getByName(MULTIPLATFORM_EXTENSION_NAME) as NamedDomainObjectContainer internal set(value) = DslObject(this).extensions.add(MULTIPLATFORM_EXTENSION_NAME, value) var configuration: GradlePassConfigurationImpl @Suppress("UNCHECKED_CAST") - get() = DslObject(this).extensions.getByName(CONFIGURATION_EXTENSION_NAME) as GradlePassConfigurationImpl + @Input get() = DslObject(this).extensions.getByName(CONFIGURATION_EXTENSION_NAME) as GradlePassConfigurationImpl internal set(value) = DslObject(this).extensions.add(CONFIGURATION_EXTENSION_NAME, value) protected var externalDocumentationLinks: MutableList = mutableListOf() diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt index 8ed24ed9..7fec7d24 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt @@ -21,7 +21,7 @@ class GradleSourceRootImpl: SourceRoot, Serializable { override fun toString(): String = path } -open class GradlePassConfigurationImpl(@Transient val name: String = ""): PassConfiguration { +open class GradlePassConfigurationImpl(@Transient val name: String = ""): PassConfiguration, Serializable { override var classpath: List = emptyList() override var moduleName: String = "" override var sourceRoots: MutableList = mutableListOf() -- cgit