aboutsummaryrefslogtreecommitdiff
path: root/runners
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-06-13 11:58:04 +0200
committerKamil Doległo <kamilok1965@interia.pl>2019-06-13 11:58:04 +0200
commit6dc022a9dec8429c5555e5b6082bf1e79b393891 (patch)
tree68c7d5dea64065058dc6d91a6d74e48a0e233e0d /runners
parentafb2bdcf15634390631b56d2159311923bb6461f (diff)
downloaddokka-6dc022a9dec8429c5555e5b6082bf1e79b393891.tar.gz
dokka-6dc022a9dec8429c5555e5b6082bf1e79b393891.tar.bz2
dokka-6dc022a9dec8429c5555e5b6082bf1e79b393891.zip
Fix for Gradle incremental builds
Diffstat (limited to 'runners')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt5
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt2
2 files changed, 4 insertions, 3 deletions
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<GradlePassConfigurationImpl>
@Suppress("UNCHECKED_CAST")
- get() = DslObject(this).extensions.getByName(MULTIPLATFORM_EXTENSION_NAME) as NamedDomainObjectContainer<GradlePassConfigurationImpl>
+ @Input get() = DslObject(this).extensions.getByName(MULTIPLATFORM_EXTENSION_NAME) as NamedDomainObjectContainer<GradlePassConfigurationImpl>
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<DokkaConfiguration.ExternalDocumentationLink> = 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<String> = emptyList()
override var moduleName: String = ""
override var sourceRoots: MutableList<SourceRoot> = mutableListOf()