I have JavaEE webapp project(named ProjectA) developed in IntelliJ IDEA.It has build.gradle file that applies war plugin :
apply plugin: 'war'
I want to debug(or run) gradle generated war file instead of debugging auto generated intellij artifact. It's very important for me that I can update classes changed during debugging without need to restart server.
How can I do it?
Note that :
1) When click refresh button in gradle plugin tab () Intellij updates all project configurations(for example module dependencies) and generate artifacts.I called it auto generated intellij artifact.
For run it,I should only create new local Tomcat Server configuration and add artifact to deployment tab.
2) In addition,there is some gradle tasks(clean,build,war and etc).I can execute build task or war task to generate war file.I called it gradle generated war file.