2

I am trying to update spray project, and got

sbt.ResolveException: unresolved dependency: com.earldouglas#xsbt-web-plugin;1.0.0-M7: not found

I have added Typesafe repository

resolvers ++= Seq("spray repo" at "http://repo.spray.io",
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/")

But still can not resolve this dependency.

jrudolph
  • 8,307
  • 4
  • 32
  • 50
Cherry
  • 31,309
  • 66
  • 224
  • 364

2 Answers2

4

For versions prior to 1.0.0, xsbt-web-plugin was published to Sonatype and synced to Maven Central. For 1.0.0 and later, it is published to Bintray.

unresolved dependency: com.earldouglas#xsbt-web-plugin;1.0.0-M7

Can you update your dependency to 1.0.0 from 1.0.0-M7? Better yet, consider updating to 2.3.0 or later.

project/plugins.sbt:

addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "1.0.0")
earldouglas
  • 13,265
  • 5
  • 41
  • 50
0

Following code in the build.sbt worked for me

resolvers += Resolver.bintrayRepo("earldouglas", "sbt-plugins") 
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "2.2.0")

resolvers += Resolver.url(
  "bintray-earldouglas-sbt-plugins",
  url("http://dl.bintray.com/earldouglas/sbt-plugins"))(
  Resolver.ivyStylePatterns) 
kiran.kumar M
  • 811
  • 8
  • 25