title: Cannot import HATEOAS elements in Spring Boot Gradle project
body: <p>I can't import any HATEOAS elements, although it seems to be correctly implemented in my build.gradle:</p>
  
  <pre><code>implementation 'org.springframework.boot:spring-boot-starter-hateoas'
  </code></pre>
  
  <p>And here are my imports:</p>
  
  <pre><code>import org.springframework.hateoas.Resource;
  import org.springframework.hateoas.Resources;
  import org.springframework.web.bind.annotation.DeleteMapping;
  import org.springframework.web.bind.annotation.GetMapping;
  import org.springframework.web.bind.annotation.PathVariable;
  import org.springframework.web.bind.annotation.PostMapping;
  import org.springframework.web.bind.annotation.PutMapping;
  import org.springframework.web.bind.annotation.RequestBody;
  import org.springframework.web.bind.annotation.RestController;
  
  import static org.springframework.hateoas.mvc.ControllerLinkBuilder.*;
  </code></pre>
  
  <p>And here are the errors:</p>
  
  <pre><code>$ ./gradlew build
  
  &gt; Task :compileJava FAILED
  path\src\main\java\payroll\EmployeeController.java:5: error: cannot find symbol
  import org.springframework.hateoas.Resource;
                                    ^
    symbol:   class Resource
    location: package org.springframework.hateoas
  path\src\main\java\payroll\EmployeeController.java:6: error: cannot find symbol
  import org.springframework.hateoas.Resources;
                                    ^
    symbol:   class Resources
    location: package org.springframework.hateoas
  path\src\main\java\payroll\EmployeeController.java:15: error: package org.springframework.hateoas.mvc does not exist
  import static org.springframework.hateoas.mvc.ControllerLinkBuilder.*;
                                               ^
  path\src\main\java\payroll\EmployeeController.java:41: error: cannot find symbol
    Resource&lt;Employee&gt; one(@PathVariable Long id) {
    ^
    symbol:   class Resource
    location: class EmployeeController
  4 errors
  </code></pre>
  
  <p>I don't think it's relevant, but I am using IntelliJ and am trying to work through this tutorial: <a href="https://spring.io/guides/tutorials/bookmarks/" rel="nofollow noreferrer">https://spring.io/guides/tutorials/bookmarks/</a></p>
  
  <p>I couldn't find any solutions when I googled the issue, and I don't really understand what the problem is, so I don't know what else to try.</p>