gradle

How can I get a list of all configurations for a Gradle project?


I'm trying to get a list of all valid values for the --configuration flag of the dependencyInsight or dependencies gradle tasks. How would I go about doing this with Gradle 3.2.1?


Solution

  • Have you tried:

    configurations.each { println it.name }
    

    ?