什么是Gradle中的冒号运算符? [英] What is the colon operator in Gradle?
本文介绍了什么是Gradle中的冒号运算符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您总是看到类似
project(':bluewhale').hello
这似乎不是Groovy语法,这是什么?
This doesn't seem to be Groovy syntax, what is it?
推荐答案
冒号不是运算符(您可以看到它在字符串中被使用). Gradle用来描述子项目路径的是分隔符.例如
The colon is not an operator (you can see it's being used inside a string). It's the separator that Gradle uses to describe paths to subprojects. For example,
evaluationDependsOn(':api:producer')
将查找子项目api
的子项目producer
.
would look for the subproject producer
of the subproject api
.
这篇关于什么是Gradle中的冒号运算符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文