[英]Best directory for Gradle build resources (e.g. license header template)
I'm looking for the appropriate location to place resources that are used by the build, like a license header template file or a file with code formatter settings. 我正在寻找合适的位置来放置构建所使用的资源,例如许可证标头模板文件或具有代码格式化程序设置的文件。
The buildSrc
seems like the most appropiate place (eg buildSrc/src/main/resources
), but I only found it mentioned in the context of Build sources . buildSrc
似乎是最合适的位置(例如buildSrc/src/main/resources
),但是我只在Build源代码的上下文中提到过它。
Another option would be src/build/resources
. 另一个选项是
src/build/resources
。 Perhaps there are better locations I didn't consider. 也许有我没有考虑的更好的位置。
What would be the most appropriate directory for these resources? 这些资源最合适的目录是什么?
In many gradle builds the convention of using $rootproject/gradle as folder for build resources has been established. 在许多gradle构建中,已经建立了使用$ rootproject / gradle作为构建资源文件夹的约定。 you can have a config folder to store your license files / checkstyle configs etc. in there.
您可以在其中有一个配置文件夹来存储您的许可证文件/ checkstyle配置等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.