libraryDependencies for com.eed3si9n#sbt-assembly;0.13.0: not found

后端 未结 5 702
夕颜
夕颜 2021-02-08 20:23

I am building a sbt plugin and want to reference assembly task in the sbt-assembly plugin ( to be dependent on my task)

to do this i need to reference it as a library (

5条回答
  •  醉酒成梦
    2021-02-08 20:50

    It is not resolving because you did not specify a scala version. It should be something like:

    libraryDependencies ++= Seq(
        "com.eed3si9n" % "sbt-assembly_2.11" % "0.13.0"
    )
    

    Or, to automatically get the scala version used in project:

    libraryDependencies ++= Seq(
        // notice the double %% here
        "com.eed3si9n" %% "sbt-assembly" % "0.13.0"
    )
    

    But, sbt-assembly is not supposed to be installed that way. The docs show that you must add the following line to your project/plugins.sbt instead:

    addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.2")
    

    If developing an sbt plugin, the addSbtPlugin line has to go directly into ./build.sbt.

提交回复
热议问题