John Little
John Little

Reputation: 12338

how to create a gradle and spring project in intellij (ultimate)

In intellij, you can either create a gradle project, or a spring projected, but not both.

Assuming one creates a spring project, how does one then add gradle using the IDE?

When you create a spring project in intellij, you can also add groovy which is nice. Having groovy support as part of the gradle build for spring would be a big bonus.

Upvotes: 1

Views: 299

Answers (3)

y.bedrov
y.bedrov

Reputation: 6024

You could select "Spring Initializr" in "New Project" dialog. It will create spring project with maven/gradle support.

Upvotes: 1

denis.zhdanov
denis.zhdanov

Reputation: 3744

IMO the easiest way is to generate target gradle config using https://start.spring.io, then just open is as project from the IDE.

Upvotes: 1

Dimitrios Mavrommatis
Dimitrios Mavrommatis

Reputation: 321

You can create a spring project and if you add a build.gradle file afterwards Intellij will ask you if you want to import it as a Gradle project.

This can be also done manually through gradle tool.

Upvotes: 0

Related Questions