New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gradlew tasks
should sort tasks groups according to a lifecycle or something like that
#10133
Comments
gradlew tasks
groups by "lifecycle" or something like thatgradlew tasks
should sort tasks groups according to a lifecycle or something like that
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
This is still relevant |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
I think this is still relevant |
Expected Behavior
./gradlew
tasks should provide user-friendly order rather than machine-friendly one.For instance:
I'm not sure if that would be an overkill, but it might make sense if user could configure "dependencies between build groups" so
./gradlew tasks
would do a topological sort for the task groups.For instance, if a new build group is added (e.g. "integration test tasks") by build script author, then they could specify that
"integration test tasks" group
depends on"Build verification tasks" group
andPublishing tasks
depend on"integration test tasks" group
.That would make task group order extensible.
Alternative (or additional) option is to infer group dependency from task dependencies, however it might be resource-intensive. On the other hand, it would transparently support things like "unit test tasks group" should be printed after "build tasks group" because "test tasks" depend on "build tasks"
Just for the reference, here's a current output of
tasks
:Current Behavior
Currently Gradle sorts task groups by
lexicographical order
.It makes it hard to understand "where" to look for the required task.
Context
I'm migrating Apache JMeter's build to Gradle, and having "sensible" task order would simplify user experience, especially for Gradle newbies.
The text was updated successfully, but these errors were encountered: