Gradle Support For Spring Framewokr in Intellij
已回答
Hi,
Is there any similar feature in Intellij IDEA for adding spring framework support through Gradle.
Ex: In Eclipse I can add below entry to make a gradle or spring nature. I'm looking for equivalent in IDEA.
eclipse.project{
natures "org.springframework.ide.eclipse.core.springnature"
}
请先登录再写评论。
Hi,
you can do similar using gradle 'idea' plugin, see details at https://docs.gradle.org/current/userguide/idea_plugin.html
Then, you should run the following task and open generated project in IntelliJ
Note, IntelliJ builtin Gradle Integration doesn't support such xml manipulations of that 'idea' plugin, because IntelliJ uses gradle tooling API which doesn't provide such data.
That's why you can not use gradle import for such projects and hence features of IntelliJ Gradle integration.
So, maybe better approach can be checking in VCS correct .iml files instead.