我想在 Eclipse 中设置一个使用 gradle 构建的简单 Java EE 7 应用程序。我当前的工具堆栈是:
- 带有 Buildship 的 Eclipse Java EE 4.5
- 摇篮 2.5
- Websphere Liberty 配置文件
之前使用 Maven 和 Wildfly,我基本上做了以下步骤:
- mvn archetype:generate -DarchetypeGroupId=com.airhacks -DarchetypeArtifactId=javaee7-essentials-archetype -DarchetypeVersion=1.2
- 在 src/main/webapp 中创建 index.xhtml (facelet)
- 将 faces-config.xml 添加到 src/main/webapp/WEB-INF
- 在eclipse中:配置应用服务器(wildfly)
- 在 Eclipse 中:将现有的 Maven 项目导入工作区
- 在 Eclipse 中:将新应用程序部署到服务器
我怎样才能使用 gradle 做同样的事情?