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
On one hand this makes perfect sense and this absolutely shouldn't differ between the different tools
But on the other hand, we want to discourage the use of the rule-generated tasks
The reasoning behind this is that the moment you want to depend on something then this is no longer an ad-hoc task being run, and ad-hoc tasks is what the rule is meant for
If you've got something that's being run often, like say foo_run_build ideally you should create a proper task with inputs/outputs and all that jazz and name it fooRunBuild
By doing this you don't incur any cost for configuring the task if it's not being used, Gradle has lazy configuration but if we create the task instead of registering it we prevent it from being lazy
I need to do some quick searches and see how these are being used in the wild, I can see why this is convenient and it might be that it should just be solved by proper documentation rather than artificial technical limitations
The addPnpmRule should use the same logit as addNpmRule.
It should create (and not only register) the task.
The text was updated successfully, but these errors were encountered: