Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to find sbt-assembly in artifacts repositories online?

I'm running sbt 0.13.0 and have a project with sbt-assembly via:

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

Upon executing sbt assembly I get the following message:

[info] Resolving com.eed3si9n#sbt-assembly;0.11.2 ...
[warn]  module not found: com.eed3si9n#sbt-assembly;0.11.2
[warn] ==== typesafe-ivy-releases: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/com.eed3si9n/sbt-assembly/scala_2.10/sbt_0.13/0.11.2/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn]   http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.10/sbt_0.13/0.11.2/ivys/ivy.xml
[warn] ==== local: tried
[warn]   /Users/szalwinb/.ivy2/local/com.eed3si9n/sbt-assembly/scala_2.10/sbt_0.13/0.11.2/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/eed3si9n/sbt-assembly_2.10_0.13/0.11.2/sbt-assembly-0.11.2.pom

The typesafe repo produces a 404 as does the maven repo. It doesn't exist locally (obviously) which brings me to the last option, the scala-sbt repo. Sadly, my company's network nanny thinks scala-sbt repo is a file sharing site and blocks access. To get around this, I currently drop off the company network, do the build and then hop back on.

Is there another repo that houses sbt-assembly? Or is there another version of sbt-assembly that is available on maven or typesafe repos that I can use?

like image 574
bruce szalwinski Avatar asked Jul 29 '14 21:07

bruce szalwinski


2 Answers

The standard repository for plugins (http://repo.scala-sbt.org) basically just mirrors the sbt/sbt-plugins-releases repo from Bintray, which is where people usually publish their sbt plugins. See the sbt documentation: Bintray for plugins.

So you should be able to add that repo directly:

resolvers += "Bintray sbt plugin releases"
  at "http://dl.bintray.com/sbt/sbt-plugin-releases/"

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
like image 62
gourlaysama Avatar answered Oct 27 '22 16:10

gourlaysama


Typesafe repos were migrated to Bintray - https://www.typesafe.com/blog/migrating-repos-to-bintray

Try adding resolver in your plugins.sbt:

resolvers += Resolver.url("bintray-sbt-plugins", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
like image 35
kairius Avatar answered Oct 27 '22 16:10

kairius