From 9ab5b60c257507ba2159be8b4a8d73f4ac43d9e9 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Wed, 22 Jul 2020 11:47:19 +0200 Subject: Adapt KotlinDslDokkaTaskConfigurationTest.kt --- .../jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runners/gradle-plugin/src/test/kotlin') 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 -> -- cgit