Use the Gradle command Gradle dependencies that list the dependencies of the selected project. It includes both direct and transitive dependencies.