aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src
diff options
context:
space:
mode:
Diffstat (limited to 'runners/gradle-plugin/src')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/TaskDependencyInternalWithAdditions.kt15
1 files changed, 7 insertions, 8 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/TaskDependencyInternalWithAdditions.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/TaskDependencyInternalWithAdditions.kt
index 559484aa..381cd12a 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/TaskDependencyInternalWithAdditions.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/TaskDependencyInternalWithAdditions.kt
@@ -1,19 +1,18 @@
package org.jetbrains.dokka.gradle
import org.gradle.api.Task
-import org.gradle.api.internal.tasks.AbstractTaskDependency
+import org.gradle.api.internal.tasks.DefaultTaskDependency
import org.gradle.api.internal.tasks.TaskDependencyInternal
-import org.gradle.api.internal.tasks.TaskDependencyResolveContext
internal operator fun TaskDependencyInternal.plus(tasks: Iterable<Task>): TaskDependencyInternal =
TaskDependencyInternalWithAdditions(this, tasks.toSet())
private class TaskDependencyInternalWithAdditions(
- private val dependency: TaskDependencyInternal,
- private val additionalTaskDependencies: Set<Task>
-) : AbstractTaskDependency() {
- override fun visitDependencies(context: TaskDependencyResolveContext) {
- dependency.visitDependencies(context)
- additionalTaskDependencies.forEach(context::add)
+ dependency: TaskDependencyInternal,
+ additionalTaskDependencies: Set<Task>,
+) : DefaultTaskDependency() {
+
+ init {
+ add(dependency, additionalTaskDependencies)
}
}