You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import org.gradle.api.Named
import org.gradle.api.Task
import org.gradle.api.tasks.TaskProvider
fun Task.notDependsOn(predicate: (String) -> Boolean) {
this.setDependsOn(
this.dependsOn
.filterNot { it is TaskProvider<*> && predicate(it.name) }
// Since Gradle 7.3 NamedDomainObjectCreatingProvider<TestSuite> contains "test", not a TaskProvider.
.filterNot { it is Named && predicate(it.name) }
)
}
was used in https://github.com/TWiStErRob/net.twisterrob.cinema/blob/e6473c1577707734b71580dda33e7dd3f30e65a1/Heroku/gradle/plugins/src/main/kotlin/net/twisterrob/cinema/build/testing.gradle.kts#L76-L82
probably better to prevent adding tasks in the first place, or disabling specific task conditionally with
Task.enable
.The text was updated successfully, but these errors were encountered: