title: How do I work out what dependency I need for Spring Boot MultiValueMap in Gradle?
body: <p>I have some code which needs access to <code>org.springframework.util.MultiValueMap</code>.</p>
  
  <p>I am running IntelliJ IDEA on a Windows machine. I am getting a compilation error: </p>
  
  <blockquote>
    <p>"Cannot access org.springframework.util.MultiValueMap".</p>
  </blockquote>
  
  <p>This error occurs on the following line of code (request is an object of type ClientHttpRequest), which is in a junit test file:</p>
  
  <pre><code>String authorization = request.getHeaders().getFirst("Authorization");  
  </code></pre>
  
  <p>I have tried the following two import statements, based on the documentation for MultiValueMap (<a href="https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/util/MultiValueMap.html" rel="nofollow noreferrer">https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/util/MultiValueMap.html</a>):</p>
  
  <pre><code>import org.springframework.util;
  import org.springframework.util.MultiValueMap;
  </code></pre>
  
  <p>However these do not work - latter parts of those statements are highlighted in red. I believe this is because I don't have the correct dependencies in build.gradle.</p>
  
  <p>These are the Spring Framework dependencies I currently have:</p>
  
  <pre><code>compile("org.springframework.boot:spring-boot-starter-web")
  compile("org.springframework.ws:spring-ws-core")
  compile('org.springframework.security:spring-security-web:5.0.2.BUILD-SNAPSHOT')
  compile('org.springframework.security:spring-security-config:5.0.2.BUILD-SNAPSHOT')
  compile('org.springframework.security:spring-security-config:5.0.2.BUILD-SNAPSHOT')
  compile("org.springframework.security.oauth:spring-security-oauth2:2.0.8.RELEASE")
  testCompile('org.springframework.boot:spring-boot-starter-test')
  testCompile('org.springframework.ws:spring-ws-test')
  </code></pre>