sbt assembly command not found

后端 未结 6 1656
忘掉有多难
忘掉有多难 2021-01-01 09:03

I\'m trying to run sbt assembly. According to https://github.com/sbt/sbt-assembly , for sbt 0.13.6+ (I\'m on 0.13.7) this should be included automatically for anything with

6条回答
  •  -上瘾入骨i
    2021-01-01 09:57

    Since the introduction of auto plugins in 0.13.5, adding explicit .sbt files for plugins (except for specific cases where the plugin does not implement auto-plugin trait) is not recommended per sbt documentation.

    Add the addSbtPlugin("com.eed3si8n" % "sbt-assembly" % "0.13.0") back to plugins.sbt under project directory and remove assembly.sbt. if you still see the error, explicitly enable the plugin in the build.sbt:

    lazy val root = (project in file(".")).
      settings(commonSettings: _*).
      settings(
        name := "test",
      ).
      enablePlugins(AssemblyPlugin)
    

提交回复
热议问题