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
Is your feature request related to a problem? Please describe.
The workflow is like this
Download a manifest file containing file URL and checksum
Download the file
Verify the file with the manifest's checksum
Describe the solution you'd like
Because checksum is a plain string I need to assign a value when the task is configured.
But the manifest's checksum is only available after the download of the manifest file.
Thanks for reporting this. You are right that lazy configuration is not properly implemented in gradle-download-task yet. As a matter of fact, the properties that do allow it are almost always evaluated during initialization, which is too early for your use case. I could make it so that the checksum property is evaluated later but I'd rather not mix different approaches in one version.
I'll keep this issue open and implement lazy task configuration properly in the next major version of gradle-download-task.
In the meantime, you can use the verifyChecksum extension to achieve the same thing:
Is your feature request related to a problem? Please describe.
The workflow is like this
Describe the solution you'd like
Because
checksum
is a plain string I need to assign a value when the task is configured.But the manifest's checksum is only available after the download of the manifest file.
Describe alternatives you've considered
Seems to work, but not very nice:
The text was updated successfully, but these errors were encountered: