4

How to enable Assembly plugin on my repo. https://github.com/rmuhamedgaliev/skala-skeleton i tried fix them. But can't run this with command sbt assembly]

assembly [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] ^ exit

yannisf
  • 6,016
  • 9
  • 39
  • 61
Rinat Mukhamedgaliev
  • 5,401
  • 8
  • 41
  • 59

1 Answers1

5

You're missing some configuration (which is in details described here).

First you have to import sbtassembly.Plugin._ before importing AssemblyKeys.

import sbtassembly.Plugin._
import AssemblyKeys._

Then you have to add settings to your build (note extra assemblySettings):

lazy val root = Project(
  "root",
  file("."),
  settings = buildSettings ++ assemblySettings ++ Seq (
    libraryDependencies ++= rootDependencies
  )
)
lpiepiora
  • 13,659
  • 1
  • 35
  • 47