0

This should be working out of the box. Why doesn't it?

It seems like I can't import a Spring Boot Gradle project into Eclipse. It doesn't recognize any of the dependencies. This should be easy. Why is this not working?

Here is the configuration of my Spring Initilizr project:

broken piece of crap

Then do the following:

  1. Import
  2. Existing gradle project
  3. Select the root directory
  4. Import

It comes up and doesn't recognize the dependencies in the project:

busted

Here's what I've tried:

  1. Stack overflow (most of the examples are for maven and say refresh dependency tree)
  2. Cleaning and building the project
  3. Building the project
  4. Manually checking that the dependencies are there in the build.gradle file
  5. Installing Spring Tools into eclipse
  6. Converting project to faceted form (Java)
  7. reran the initilizr with as a WAR file

Depicted is my gradle.build file:

enter image description here

DaveCat
  • 773
  • 1
  • 10
  • 28

1 Answers1

0

I fixed it. It's the most stupid solution in the world.

When you extract the file from the .zip the initilizr creates, you can't use the root directory.

example/example/blah/blah/blah...

You have to go into the extracted directory and up one directory.

So go into example, and import the example file within that directory,.

That's why it was busted.

DaveCat
  • 773
  • 1
  • 10
  • 28