Escalante sbt plugin does not find org.jboss.shrinkwrap.descriptors#shrinkwrap-descriptors-spi;1.0.3.Final

StackOverflow https://stackoverflow.com/questions/15351171

  •  23-03-2022
  •  | 
  •  

Question

I added this to the project/plugin.sbt file:

resolvers ++= Seq(
  "JBoss repository" at "http://repository.jboss.org/nexus/content/groups/public/",
  "Project Odd repository" at "http://repository-projectodd.forge.cloudbees.com/upstream/"
)

addSbtPlugin("io.escalante.sbt" % "sbt-escalante" % "0.1.1")

then to build.sbt

import io.escalante.sbt.EscalantePlugin._
import io.escalante.sbt.EscalantePlugin.EscalanteKeys._
escalanteSettings

and as I load sbt 0.12.1 I get:

[error] (*:update) sbt.ResolveException: unresolved dependency: org.jboss.shrinkwrap.descriptors#shrinkwrap-descriptors-spi;1.0.3.Final: not found

How can I solve this?

(I don;t have enough points to create the #escalante tag :( , sorry for using the sbt tag

Was it helpful?

Solution

Just experienced this issue again.

It seems that adding the shrinkwrap-descriptors-spi dependency as a workaround for sbt#647 doesn't always work when using the published sbt-escalante binary from the maven repo, however adding it as a remote git plugin project dependency seems to.

To do so you will need to remove the addSbtPlugin("io.escalante.sbt" % "sbt-escalante" % "0.1.1") line from your project/build.sbt file and add a *.scala plugin project definition file in your project/project directory with something like the following:

Sample 'project/project/Plugins.scala':

import sbt._
import Keys._

object Plugins extends Build {
  lazy val pluginProject = Project("plugins", file(".")).settings(
    resolvers ++= Seq(
      "JBoss repository" at "http://repository.jboss.org/nexus/content/groups/public/",
      "Project Odd repository" at "http://repository-projectodd.forge.cloudbees.com/upstream/")        
  ).dependsOn(sbtEscalante)

  lazy val sbtEscalante = uri("git://github.com/escalante/sbt-escalante.git#0.1.1")
}

A sample git project can be found here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top