Properly define up-to-date values for Task which uses dependencies as input

Given a Task whose only input is dependencies and config (via extension), what is the proper Task#inputs definition for up-to-date checking in regards to the dependencies?

A Configuration is just a FileCollection so the appropriate annotation would be @InputFiles or inputs.files() if using the API.