用Gradle配置Eclipse
要在eclipse中获得完整的Gradle支持,您应该安装 buildship plugin. 要配置 JavaScript 端,您可以按照Maven的说明进行操作。
1. 将您的项目导入为Gradle项目
- Select
File -> Import - Choose
Gradle Project - Select your projects root directory
- Click on
Nextand finish the wizard


2. 将apt生成的源文件夹添加到构建路径中
使用buildship gradles时,默认的输出文件夹被过滤,在工作空间中不可见。因此,您需要从eclipse的资源过滤器设置中删除它。
- Right click on your project and select
Properties - Select
Resources - Remove the entry
build - Select
Java Build Path - Click
Add Folder... - Check the path
build/generated/source/apt/main
Make sure the new source folder contains the correctly generated mapper implementations when running JHipster via eclipse.

