And a more complex question ahead. We have a custom (bit) rake based multi-module build system for a huge multi-platform builds, trying to make a PoC on JVM based tool (gradle). And there is one key thing that helps it to be flexible for years. We use special class for inter-task "communication" (Input/Output). It has the next fields:
• File - physical path to file
• metadata - map of any values. Participates in "changed"/incremental checks.
• VirtualFileName - String (required for having path like it needed while physical path may be named as unique generated file). That's unique identifier.
As i see gradle is hardcoding(?) output to File. Is it possible to extend somehow to add custom Serializable class as Output? At least File+meta.