title: Spring STS not recognizing project structure with Gradle
body: <p>I'm trying to do <a href="https://spring.io/guides/gs/multi-module/" rel="nofollow noreferrer">this getting started guide</a> from Spring. So I cloned the project using git from the command line. As I'm working with Gradle, I removed the Maven files from the repository to clean the project.</p>
  
  <p>After that I open my STS and go to <em>File -> Open Projects from File System</em> and navigate to the <code>/initial</code> folder of the repository. The project is imported correctly but when I try to add some "java stuff" (packages, classes, etc.) I get several errors and I can only add folders and files, which is quite annoying for working.</p>
  
  <p>To be more descriptive, I'll add some images so you can see what's happening. This is the project initially imported into STS as I described above:</p>
  
  <p><a href="https://i.stack.imgur.com/14EJv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/14EJv.jpg" alt="Initial Import"></a></p>
  
  <p>Then I try to add some java stuff, let's say for example a source folder. So <em>Right Click on library -> New -> Source folder</em> and this is the result:</p>
  
  <p><a href="https://i.stack.imgur.com/7W0OJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7W0OJ.jpg" alt="Failing to add a source folder"></a></p>
  
  <p>And in the properties of <code>library</code> I have the following:</p>
  
  <p><a href="https://i.stack.imgur.com/axhi9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/axhi9.jpg" alt="enter image description here"></a></p>
  
  <p>So the question is: how can I tell to STS to recognize the library folder as a Java Project (or Gradle module, I don't know how to call it) instead of a plain folder so I can add my packages and classes?</p>
  
  <p>Thanks in advance for your answers.</p>