Consider a root project with task
In root project build script If I use
:subproject:mytask, it returns true (incorrect), but the
tasks container only contains root tasks
It seems that only the task name is compared, but it should also compare the project.
Sample repo: GitHub - cdalexndr/gradle-19219: https://github.com/gradle/gradle/issues/19219
Github issue: TaskContainer.contains not working for different project task · Issue #19219 · gradle/gradle · GitHub (closed as invalid !?)