title: How to add AWS Java SDK to Scala / Play project
body: <p>I'm playing around with Scala and Play, where I want to use the <a href="https://aws.amazon.com/sdk-for-java/" rel="noreferrer">AWS Java SDK</a>.</p>
  
  <p>I need to add the SDK to the project. And I know that I need to do that using the <code>plugins.sbt</code>.</p>
  
  <p><strong>What I have tried</strong></p>
  
  <pre><code>resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
  
  addSbtPlugin("com.amazonaws" % "aws-java-sdk" % "1.11.46")
  </code></pre>
  
  <p>It's saying:</p>
  
  <pre><code>unresolved dependencies: Error:Unresolved dependencies:com.amazonaws#aws-java-sdk;1.11.46: not found`
  </code></pre>
  
  <p>As I am new to both Java, Scala and sbt I can't figure out what I am doing wrong.</p>
  
  <p><strong>The solution</strong></p>
  
  <p>I was wrong about where to put the reference. It goes in <code>build.sbt</code> as it is not an sbt plugin, but rather a framework for the application to use.</p>
  
  <p>Add the reference to <code>build.sbt</code> like this:</p>
  
  <pre><code>libraryDependencies ++= Seq(
    "com.amazonaws" % "aws-java-sdk" % "1.11.46"
  )
  </code></pre>
  
  <p>And you are good to go. You don't need a reference to any repositories, since the aws sdk is available in the default repos.</p>
  
  <p><a href="https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk" rel="noreferrer">See a list of available AWS Java SDK versions</a>  </p>