title: SBT Assembly Plugin Error
body: <p>I'm trying to run sbt assembly on my project but I get error saying:</p>
  
  <pre><code>[error] Not a valid command: assembly
  [error] Not a valid project ID: assembly
  [error] Expected ':' (if selecting a configuration)
  [error] Not a valid key: assembly
  [error] assembly
  [error]         ^
  </code></pre>
  
  <p>I have the following structure:</p>
  
  <pre><code>MyProject
   - project
     - assembly.sbt
     - build.properties
     - BuildSettings.scala
     - MyProjectBuild.scala
   - src
     - main
       - com
         - mypkg
           - MyMainClass.scala
  </code></pre>
  
  <p>I have the following in my assembly.sbt:</p>
  
  <pre><code>resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
  
  addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
  
  // dont upgrade to 0.12.0 as there is assembly conflict
  </code></pre>
  
  <p>My build.properties is:</p>
  
  <pre><code>sbt.version=0.13.6
  </code></pre>
  
  <p>My BuildSettings.scala is:</p>
  
  <pre><code>import sbt._
  import Keys._
  
  object BuildSettings {
  
    lazy val basicSettings = Seq[Setting[_]](
      organization  := "com.eon.vpp",
      version       := "0.1.0-SNAPAHOT",
      description   := "vpp metrics producer to a kafka instance",
      scalaVersion  := "2.11.7",
      scalacOptions := Seq("-deprecation", "-encoding", "utf8"),
      resolvers     ++= Dependencies.resolutionRepos
    )
  
    // sbt-assembly settings for building one fat jar
    import sbtassembly.Plugin._
    import AssemblyKeys._
    lazy val sbtAssemblySettings = assemblySettings ++ Seq(
  
      jarName in assembly := {
        name.value + "-" + version.value + ".jar"
      },
  
      // META-INF discarding
      mergeStrategy in assembly &lt;&lt;= (mergeStrategy in assembly) { (old) =&gt;
         {
          case PathList("META-INF", xs @ _*) =&gt; MergeStrategy.discard
          case x =&gt; MergeStrategy.first
         }
      }
    )
  
    lazy val buildSettings = basicSettings ++ sbtAssemblySettings
  }
  </code></pre>
  
  <p>Any suggestions as to why is this error?</p>