Client module dependency containing file dependency

From what I read in the Gradle 2.5 documentation, it seems not possible to specify a client module dependency that has a transitive dependency on a file dependency like so:

myConf module('group:id:1.0') {

What I want to achieve is to specify a dependency on someFile, which is generated dynamically at build time. How could this be done?