diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-22 11:47:19 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-14 17:51:11 +0200 |
commit | 9ab5b60c257507ba2159be8b4a8d73f4ac43d9e9 (patch) | |
tree | b42efc104af5cda6c948f4898e5dbc9f1daae467 /runners | |
parent | 37d12bed40edc226d96d0e1a4b28a24583ece94f (diff) | |
download | dokka-9ab5b60c257507ba2159be8b4a8d73f4ac43d9e9.tar.gz dokka-9ab5b60c257507ba2159be8b4a8d73f4ac43d9e9.tar.bz2 dokka-9ab5b60c257507ba2159be8b4a8d73f4ac43d9e9.zip |
Adapt KotlinDslDokkaTaskConfigurationTest.kt
Diffstat (limited to 'runners')
-rw-r--r-- | runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt index f4029bd5..45551c26 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt @@ -1,5 +1,6 @@ package org.jetbrains.dokka.gradle +import dokka import org.gradle.testfixtures.ProjectBuilder import org.jetbrains.dokka.DokkaSourceSetID import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension @@ -13,8 +14,8 @@ class KotlinDslDokkaTaskConfigurationTest { fun `configure project using dokka extension function`() { val project = ProjectBuilder.builder().build() project.plugins.apply("org.jetbrains.dokka") - project.tasks.withType(DokkaTask::class.java).forEach { dokkaTask -> - dokkaTask.outputDirectory = File("test") + project.dokka { + outputDirectory = File("test") } project.tasks.withType(DokkaTask::class.java).forEach { dokkaTask -> |