- Install the Gradle Integration for Eclipse plugin if you don't have it already. The easiest way to do so is Help > Eclipse Marketplace... then search for Gradle.
- Add the following to the end of
build.gradle
:
apply plugin: "eclipse-wtp" eclipse { wtp { facet { facet name: 'jst.web', version: '2.5' facet name: 'java', version: '1.6' facet name: 'wst.jsdt.web', version: '1.0' } } }
- Run the "eclipse" task as a Gradle Build by right-clicking the project > Run As > Gradle Build...
From there you can simply drag the project onto the server in the Servers view, or double click the server, go to the Modules tab, and add it with the Add Web Module... button.
Further reading:
No comments:
Post a Comment