mdedetrich / sbt-bower

A SBT wrapper around Twitter's bower
Other
16 stars 8 forks source link

Unable to resolve #2

Closed behaghel closed 10 years ago

behaghel commented 10 years ago

Following the doc, I have added the following to my project/plugins.sbt:

addSbtPlugin("com.mdedetrich" %% "sbt-bower" % "0.2.0-SNAPSHOT")

But here is the result:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.mdedetrich#sbt-bower;0.2.0-SNAPSHOT: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      com.mdedetrich:sbt-bower:0.2.0-SNAPSHOT (sbtVersion=0.13, scalaVersion=2.10)

Specifically, according to the build of the project I was expecting the following to succeed but sonatype doesn't know about the mdedetrich dir:

[warn] ==== Sonatype snapshots: tried
[warn]   http://oss.sonatype.org/content/repositories/snapshots/com/mdedetrich/sbt-bower_2.10_0.13/0.2.0-SNAPSHOT/sbt-bower-0.2.0-SNAPSHOT.pom

Thanks for your work on that, can't wait to try it!

mdedetrich commented 10 years ago

Sorry, I havn't actually updated to the repo yet (I was just using this locally!)

If you want to use it, you can just clone it and do publish-local. Ill publish it on a repo when I get some more time

behaghel commented 10 years ago

Works well that way. Here is what I had to do to make it work:

addSbtPlugin("com.github.mdedetrich" %% "sbt-bower" % "0.2.0")
BowerKeys.installDirectory in BowerKeys.Bower <<= (sourceDirectory in BowerKeys.Bower) (_ / "js" / "vendor")
mdedetrich commented 10 years ago

Just like to mention, that I have finally set up a repo, so you can use standard libraries (check the updated readme for more info).

Have also updated the readme to reflect your changes (your comment about Bower and BowerKeys reflects the difference between using a .sbt file and using a .scala file, the .scala file needs to reference objects by their namespace)