且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

什么是Gradle中的冒号运算符?

更新时间:2022-05-13 03:30:44

冒号不是运算符(您可以看到它在字符串中被使用). 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.