dorongold / gradle-task-tree

Gradle plugin that adds a 'taskTree' task that prints task dependency tree
Apache License 2.0
857 stars 56 forks source link

TaskTree raise an exception when called #49

Closed nicolasfara closed 1 year ago

nicolasfara commented 1 year ago

Hi, first of all thanks for this plugin: it's very convenient!

I'm currently using Gradle 7.6 with this plugin. When launching the task ./gradlew build taskTree, the following exception is raised:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':taskTree'.
> Cannot cast object 'org.gradle.execution.plan.DefaultFinalizedExecutionPlan@e45462c' with class 'org.gradle.execution.plan.DefaultFinalizedExecutionPlan' to class 'org.gradle.execution.plan.DefaultExecutionPlan'

This is the repo in which the plugin fails: https://github.com/nicolasfara/pulverization-framework

Is this maybe related to a new version of Gradle that is not already supported by the plugin?

roshea1-chwy commented 1 year ago

Looks like https://gitlab.com/barfuin/gradle-taskinfo is experiencing the same issue on Gradle 7.6 https://gitlab.com/barfuin/gradle-taskinfo/-/issues/20#note_1213772592

dorongold commented 1 year ago

Fixed with plugin version 2.1.1.