I think you mean a configuration that is independent. Assuming you have something like:
configurations{
myConf
}
dependencies{
myConf 'mydep:mydep:1.0'
}
Then, if you are sure that in all your dependencies there myConfwill be only one file for, then you can do configurations.myConf.singleFile(return type File).
, , , configurations.myConf.files ( - Set<File>).
, - :
configurations.myConf.files { dep -> dep.name == 'mydep' }
dep Dependency, - Set<File>.
. javadoc.