Gradle Eclipse 插件的 Grails 等价物?

Grails equivalent for Gradle Eclipse plugin?

我刚刚将一个 Grails 项目克隆到我的本地机器上(使用 Mercurial)。我正在为 Grails 项目使用 GGTS,并希望将 Grails 项目作为现有项目导入。对于 Gradle 构建的项目,我只需应用 Gradle Eclipse 插件,然后在项目根目录中应用 运行 gradle eclipse

这会为我生成 Eclipse 项目文件和类路径魔法,因此我可以将它导入我的 Eclipse 工作区。

我正在为我的 Grails 项目使用 GGTS。但是当我打开 GGTS 并转到导入 >> 现有项目和 select 我的 Grails 项目(根目录)时,它没有看到必要的 Eclipse 项目文件并且无法打开它。

所以我问:是否有等效的 "Grails Eclipse/GGTS" 插件允许我使用没有 Eclipse 文件(.project 等)的 Grails 项目并生成它们?

您正在查找的命令是 Grails 命令 integrate-with。您可以在 Grails documentation 中阅读更多相关信息。

The integrate-with command will integrate Grails with different IDEs and build systems based on the arguments provided. For example the --eclipse command will produce .project and .classpath files for use with Eclipse or Spring Tool Suite (STS).