如何获取Gradle项目的所有配置的列表? [英] How can I get a list of all configurations for a Gradle project?

查看:55
本文介绍了如何获取Gradle项目的所有配置的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取--configuration 标志的所有有效值的列表.html#sec:dependency_insight"rel =" noreferrer> dependencyInsight 或

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?

推荐答案

您是否尝试过:

configurations.each { println it.name }

?

这篇关于如何获取Gradle项目的所有配置的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆