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

回眸只為那壹抹淺笑 提交于 2019-12-03 06:27:23
marcospereira

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.

In my case, correcting the sbt assembly version from 14.3 to 14.5 did the trick. Please check what's yours and try that.

So in the project\assembly.sbt , it was like-

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

Then I changed it to-

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

Hope it helps!

In addition to the above suggestions I had to add

resolvers += Resolver.url("bintray-sbt-plugins", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

to project/plugins.sbt.

It is not resolving for Scala - 2.12.

Add the following line in - project/plugins.sbt -

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5")
resolvers += Resolver.url("bintray-sbt-plugins", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

To find the proper path, try the following -

https://dl.bintray.com/sbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_<version>/

So, using version 2.12, the resolvable path can be found as below -

https://dl.bintray.com/sbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.14.5/ivys/

I had the same issues, All I did was, remove the ==>

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

line from build.sbt and copied to another file, named assembly.sbt at the same project level, where build.sbt is.

It resolved the error.(After 3 hours of reading all posts on the internet. :-) )

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!