What is the colon operator in Gradle?

2020-06-01 07:19发布

问题:

You always see code like

project(':bluewhale').hello 

This doesn't seem to be Groovy syntax, what is it?

回答1:

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')

would look for the subproject producer of the subproject api.