What are valid return types for @InputFile?

Which return types are valid for a getter that is annotated with @InputFile?

I expect that File will work. What is with String or URL? If URL is supported, which protocol are supported. Is a jar file URL supported?

You should be able to return anything that Project.file(Object) can handle. See Table 1 here and its footnotes.

1 Like