What does ":" mean?


(John Wilson) #1

As I understand it, “:” can be treated like a path separator. For instance, if I have a subproject named Foo then it could be referenced as “:Foo”. Is that correct?

Can anyone point me to where this syntax is documented?

Thank you!


(davidmichaelkarr) #2

Well, I don’t know about a statement that clearly defines it,but if you open up the userguide PDF and search for occurrences of that, you’ll see examples of it. There are some false positives that will be obvious.


(Stefan Oehme) #3

: separates logical paths in Gradle, e.g. project paths or task paths. When you address projects, e.g. in dependencies, you always use the logical path.


(John Wilson) #4

David and Stefan, thank you both for your responses!