Gradle 项目命名约定

Gradle project naming conventions

Maven artifactId 应该有小写字母。 Guide to naming conventions 说:

artifactId is the name of the jar without version. If you created it then you can choose whatever name you want with lowercase letters and no strange symbols.

有Gradle类似的东西吗? Gradle 项目应该如何命名?

默认情况下,如果 Gradle 项目生成存档,如 jararchiveName 将派生自项目名称。 但是,如果需要,您可以自定义这些内容,请参阅 documentation

请注意,如果您不为项目命名,在 settings.gradle 中,项目名称将默认为包含它的文件夹。

最后,如果您构建的内容供其他人使用,那么我建议坚持 artifactId 约定。