我应该将 build.groovy 文件放在我的 grails 项目中的什么位置?

Where do i put the build.groovy file in my grails project?

我在网上搜索了几个网站,他们说放在根文件夹中,但我在我的项目中找不到任何根文件夹。 我正在为我的项目使用 GGTS,并希望进行 gradle 构建。

Root folder is not a folder named "root". It's a main folder which your project is in.

与您的项目同名。您打开该文件夹并将 build.groovy 文件放在那里。路径将是 .../your_project_name/build.groovy
您实际上可以使用 this 教程来查看有关 gradle 在 GGTS 中构建的详细说明。