At runtime, the dependency is resolved and a file is downloaded from repository server and put into gradle cache directory, such as: $GRADLE_HOME/caches/artifacts-14/filestore/com.mycompany.db/myprojectl/TRUNK-SNAPSHOT/dmp/myprojectl-TRUNK-SNAPSHOT.dmp
I would like to write a gradle task to invoke an external process to import the dump file into a local DB. To do so, an external process will be invoked from gradle (impdp) and it will need to get the full path of the dump file.
Any idea on how to retrieve the full path of a file defined in runtime dependency? (this is similar to what is done in gradle eclipse to generate eclipse .classpath/classpathentry/sourcepath)