diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-12 14:41:10 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-14 17:51:11 +0200 |
commit | 03ea4d233b51cf90b5028586355e0311151b6780 (patch) | |
tree | 53b8d9b909613bfc24107c7f96acd5fd989b14f4 /runners/gradle-plugin/src/test/kotlin | |
parent | 334619d42d3c26379429ea8cdab13b28c87c159e (diff) | |
download | dokka-03ea4d233b51cf90b5028586355e0311151b6780.tar.gz dokka-03ea4d233b51cf90b5028586355e0311151b6780.tar.bz2 dokka-03ea4d233b51cf90b5028586355e0311151b6780.zip |
DokkaMultiModuleTask: Use Property/Provider API
Diffstat (limited to 'runners/gradle-plugin/src/test/kotlin')
2 files changed, 6 insertions, 6 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleFileLayoutTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleFileLayoutTest.kt index 6ec3dd57..407b1ef9 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleFileLayoutTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleFileLayoutTest.kt @@ -57,7 +57,7 @@ class DokkaMultiModuleFileLayoutTest { subFolder.mkdirs() subFolder.resolve("other.file").writeText("other text") - parentTask.fileLayout = object : DokkaMultiModuleFileLayout { + parentTask.fileLayout by object : DokkaMultiModuleFileLayout { override fun targetChildOutputDirectory(parent: DokkaMultiModuleTask, child: AbstractDokkaTask): File { return parent.project.file("target/output") } @@ -105,7 +105,7 @@ class DokkaMultiModuleFileLayoutTest { val project = ProjectBuilder.builder().build() val childTask = project.tasks.create<DokkaTask>("child") val parentTask = project.tasks.create<DokkaMultiModuleTask>("parent") - parentTask.fileLayout = object : DokkaMultiModuleFileLayout { + parentTask.fileLayout by object : DokkaMultiModuleFileLayout { override fun targetChildOutputDirectory(parent: DokkaMultiModuleTask, child: AbstractDokkaTask): File { return child.outputDirectory.getSafe().resolve("subfolder") } @@ -118,7 +118,7 @@ class DokkaMultiModuleFileLayoutTest { val project = ProjectBuilder.builder().build() val childTask = project.tasks.create<DokkaTask>("child") val parentTask = project.tasks.create<DokkaMultiModuleTask>("parent") - parentTask.fileLayout = NoCopy + parentTask.fileLayout by NoCopy parentTask.copyChildOutputDirectory(childTask) } } diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt index 640d980b..1e444d80 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt @@ -58,7 +58,7 @@ class DokkaMultiModuleTaskTest { assertTrue(multimoduleTasks.isNotEmpty(), "Expected at least one multimodule task") multimoduleTasks.configureEach { task -> - task.documentationFileName = "customDocumentationFileName.md" + task.documentationFileName by "customDocumentationFileName.md" task.outputDirectory by task.project.buildDir.resolve("customOutputDirectory") task.cacheRoot by File("customCacheRoot") task.pluginsConfiguration.put("pluginA", "configA") @@ -131,7 +131,7 @@ class DokkaMultiModuleTaskTest { val childTask = child.tasks.create<DokkaTask>("child") parentTask.addChildTask(childTask) - parentTask.documentationFileName = "module.txt" + parentTask.documentationFileName by "module.txt" assertEquals( listOf(parent.file("child/module.txt")), parentTask.childDocumentationFiles, @@ -165,7 +165,7 @@ class DokkaMultiModuleTaskTest { val childTask = child.tasks.create<DokkaTask>("child") parentTask.addChildTask(childTask) - parentTask.fileLayout = object : DokkaMultiModuleFileLayout { + parentTask.fileLayout by object : DokkaMultiModuleFileLayout { override fun targetChildOutputDirectory(parent: DokkaMultiModuleTask, child: AbstractDokkaTask): File { return parent.project.buildDir.resolve(child.name) } |