2
有subprojects
和allprojects
属性,但我怎么才能从字面上列出已知的项目子集?我尝试以下方法:Gradle。如何为子项目列表指定共享配置?
[project(':child1'), project(':child2')] {
...
}
这是由println allprojects
输出启发:
[project ':stripper', project ':webui', project ':wikidigest']
,但它不工作。日志输出:
* What went wrong:
A problem occurred evaluating root project 'projects'.
> No signature of method: java.util.ArrayList.call() is applicable for argument types: (build_1ngb77rivv12hrhe33snq4jat0$_run_closure4) values: [[email protected]]
Possible solutions: tail(), wait(), last(), any(), max(), wait(long)