How to get absolute path of a file declared in dependencies?

Alternative:

task printDeps {
  doLast {
     println "Dependencies:"
     configurations.runtime.each { println it }
  }
}