diff options
author | Andrey Tyrin <andrei.tyrin@jetbrains.com> | 2023-01-19 13:44:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 13:44:56 +0100 |
commit | 4121336ce35ae2502ace12b5b7469fd3dbc5a4ad (patch) | |
tree | 2aad4ff544272578a79b12b7e2d69f481536638f /runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka | |
parent | 5eeb2bbeb8c71ae813808ee0e8d09293c4abe1c1 (diff) | |
download | dokka-4121336ce35ae2502ace12b5b7469fd3dbc5a4ad.tar.gz dokka-4121336ce35ae2502ace12b5b7469fd3dbc5a4ad.tar.bz2 dokka-4121336ce35ae2502ace12b5b7469fd3dbc5a4ad.zip |
Fix NoSuchMethodError for Gradle 8.0 RC1 (#2816)
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/TaskDependencyInternalWithAdditions.kt | 15 |
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) } } |