Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the colon operator in Gradle?

You always see code like

project(':bluewhale').hello 

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

like image 324
Noumenon Avatar asked Sep 17 '15 12:09

Noumenon


1 Answers

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.

like image 53
Noumenon Avatar answered Jan 02 '23 06:01

Noumenon