Web application with Intellij Idea 14 and Gradle

We have ported the web project to Gradle, and now we are trying to use it in Intellij Idea 14.0. But I'm a little confused! Gradle has a tool window, and tasks work correctly. As I understand it, even when a project is based on Gradle, Idea uses its own project files to manage things. However, these project files are updated from Gradle when the "Update All Gradle Projects" button in the Gradle tool window is clicked.

  • Idea Web Edge is NOT automatically created from Gradle. Therefore, the project artifact is not created correctly. Did I miss something?

  • Is there a way to change Idea make, build an artifact (in the Build menu) to work based on Gradle tasks instead of my own Idea project files? (for example, telling Idea somehow that Make in the Build menu should just run the Gradle compilation task, or should Build Artficat run the Gradle build task?)

  • How do I create the correct Run / Debug configuration? I tried the following sequence: Gradle Build Project Build Artifacts But when calling my Run configuration there is no real artifact (i.e. the output directory for the artifact remains empty), which leads to the fact that nothing was installed in Tomcat!

+5
source share

Source: https://habr.com/ru/post/1209400/


All Articles