title: How to correctly start a Scala Project with sbt in IntelliJ?
body: <p>I want to build a Scala Client that connects to the Twitter Streaming API. I created the app on Twitter to get the API and Token Keys. Now I created a new Scala Project in IntelliJ and I would like to use the OAuth2 Client from <a href="https://index.scala-lang.org/dakatsuka/akka-http-oauth2-client/akka-http-oauth2-client/0.2.0?target=_2.12" rel="nofollow noreferrer">https://index.scala-lang.org/dakatsuka/akka-http-oauth2-client/akka-http-oauth2-client/0.2.0?target=_2.12</a></p>
  <p>What is the correct way of proceeding? I inserted the dependency statement in the <code>build.sbt</code> file:</p>
  <pre><code>libraryDependencies += &quot;com.github.dakatsuka&quot; %% &quot;akka-http-oauth2-client&quot; % &quot;0.1.0&quot;
  </code></pre>
  <p>and added the import statement at the top of the class:</p>
  <pre><code>import java.net.URI
  import com.github.dakatsuka.akka.http.oauth2.client.{ Client, Config }
  
  object Client extends App {
  
  
      val config = Config(
          clientId     = &quot;...&quot;
          clientSecret = &quot;...&quot;
          site         = URI.create(&quot;api.twitter.com&quot;)
      )
  
      val client = Client(config)
  
      // for the moment nothing else
  }
  </code></pre>
  <p>Is this correct and what do I need to do such that it obtaines the dakatsuka library?</p>
  <p>EDIT to follow up on comment</p>
  <p>According to <a href="https://www.scala-sbt.org/1.x/docs/Library-Dependencies.html" rel="nofollow noreferrer">the documentation:</a></p>
  <p><a href="https://i.stack.imgur.com/dXnIx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dXnIx.png" alt="enter image description here" /></a></p>
  <p>I enter <code>reload</code> and then <code>update</code> at the <code>sbt shell</code> prompt but when I do that it returns:</p>
  <pre><code>IJ]sbt:stream_scala&gt; update
  [warn] 
  [warn]  Note: Unresolved dependencies path:
  [error] stack trace is suppressed; run last update for the full output
  [error] (update) sbt.librarymanagement.ResolveException: Error downloading com.github.dakatsuka:akka-http-oauth2-client_2.13:0.2.0
  [error]   Not found
  [error]   Not found
  [error]   not found: /home/mzh/.ivy2/local/com.github.dakatsuka/akka-http-oauth2-client_2.13/0.2.0/ivys/ivy.xml
  [error]   not found: https://repo1.maven.org/maven2/com/github/dakatsuka/akka-http-oauth2-client_2.13/0.2.0/akka-http-oauth2-client_2.13-0.2.0.pom
  [error]   not found: https://oss.sonatype.org/content/repositories/snapshots/com/github/dakatsuka/akka-http-oauth2-client_2.13/0.2.0/akka-http-oauth2-client_2.13-0.2.0.pom
  [error] Total time: 2 s, completed Jul 6, 2020, 7:36:08 PM
  [IJ]sbt:stream_scala&gt; 
  </code></pre>
  <p>The Sonatype Resolver is there:</p>
  <pre><code>[IJ]sbt:stream_scala&gt; inspect resolvers
  [info] Setting: scala.collection.Seq[sbt.librarymanagement.Resolver] = Vector(Sonatype OSS Snapshots: https://oss.sonatype.org/content/repositories/snapshots)
  [info] Description:
  [info]  The user-defined additional resolvers for automatically managed dependencies.
  </code></pre>
  <p>My <code>build.sbt</code> looks like this:</p>
  <pre><code>name := &quot;stream_scala&quot;
  
  version := &quot;0.1&quot;
  
  scalaVersion := &quot;2.13.3&quot;
  
  resolvers += &quot;Sonatype OSS Snapshots&quot; at &quot;https://oss.sonatype.org/content/repositories/snapshots&quot;
  
  libraryDependencies += &quot;com.github.dakatsuka&quot; %% &quot;akka-http-oauth2-client&quot; % &quot;0.2.0&quot;
  </code></pre>