简体   繁体   中英

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 .

Another option would be 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. you can have a config folder to store your license files / checkstyle configs etc. in there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM