André Crabb
09/04/2024, 4:14 PMAndré Crabb
09/04/2024, 4:14 PMVampire
09/04/2024, 5:05 PMdependsOn you make that does not have a lifecycle task on the left-hand side is a code-smell and a sign that you are doing something wrong.
Often these messages mean, you are not properly wiring task outputs to task inputs and thereby also implicitly getting the necessary task dependency.
Another typical problem is, that you have tasks with overlapping outputs. So for example when you have a Copy task that copies a file to layout.buildDirectory, then suddenly the whole build directory is considered output of that task which makes up-to-date checks ineffective, task-output cache unusable (resp. storing non-sense), and such detections bail that you use outputs of that task without dependency while you actually use some other tasks output but just get complained because of that overlap which is disouraged bad practice.
What it is concretely in your case is hard to guess wihtout any substantial information.André Crabb
09/04/2024, 7:01 PMandroid { ... } block and so seeing the actual tasks and dependencies is virtually impossible.Vampire
09/04/2024, 7:06 PMVampire
09/04/2024, 7:08 PMAndré Crabb
09/04/2024, 7:10 PMAndré Crabb
09/04/2024, 7:10 PMAndré Crabb
09/04/2024, 7:11 PMVampire
09/04/2024, 7:14 PMHm its saying 7.5 is the minimum đ€
Who for what?
André Crabb
09/04/2024, 7:19 PMAndré Crabb
09/04/2024, 7:27 PMandroid block.
The errors were saying to add an explicit dependency. (I never got it to build with it in there anyway...so I assumed I had the syntax wrong or something).
But you're saying that having that explicit dependency is not good?Vampire
09/04/2024, 9:33 PMplugins { ... } block, not the legacy way you showed) and the plugins register tasks. That was always like that. And most plugins register extensions like android { ... } where you do configuration for the plugin, but can also always configure the tasks the plugins added.
And yes, having explicit task dependencies is bad practice unless the left-hand side is a lifecycle task.
If you get those warnings about tasks that plugins added, it might well be that those plugins are simply too old and misbehaving for the Gradle version you are using.André Crabb
09/05/2024, 1:31 PMVampire
09/05/2024, 1:33 PMAndré Crabb
09/05/2024, 1:56 PMVampire
09/05/2024, 2:02 PMVampire
09/05/2024, 2:03 PM