How to get a list of dependencies in plugin?

In gradle dependencies are organized in configurations. To access all dependencies for a configuration you can simply call

project.configurations.compile.allDependencies

cheers, René