Closed diwa-zz closed 10 years ago
@diwa You will have to enable snapshot repository in your build (build.sbt or project/Build.scala) file too.
resolvers += Resolver.sonatypeRepo("snapshots")
Thanks for the tip. It works for me now.
I still reciving in yo-demo, even if snapshots resolver is added: com.tuplejump#play-yeoman_2.11;0.7.1-SNAPSHOT: not found
+1 . It looks like the sonatype repository is missing the scala version prefix.
when I try to use
addSbtPlugin("com.tuplejump" % "play-yeoman" % "0.7.1-SNAPSHOT")
SBT looks for this URL
https://oss.sonatype.org/content/repositories/snapshots/com/tuplejump/play-yeoman_2.10_0.13/0.7.1-SNAPSHOT/play-yeoman-0.7.1-SNAPSHOT.pom
@wingtsun You need to explicitly enable sonatype snapshot repository with the following line in Build.scala/build.sbt as well as plugin.sbt
resolvers += Resolver.sonatypeRepo("snapshots")
@FoxxMD You should be using %%
addSbtPlugin("com.tuplejump" %% "play-yeoman" % "0.7.1-SNAPSHOT")
@milliondreams Sorry I made a typo in my last comment, I am using &&
and still recieving the error
To add to this, trying to add play-yeoman as a library dependency instead of an sbtplugin (i tried for S&G's) actually DOES work, but then some kind of wonky syntax prevents it from recognizing dependencies.
Perhaps there is a problem with configuration during publishing? It looks like plugins are compiled differently than library dependencies because they depend on the sbt version. I'm sure you're aware of this of course! But I think the directory hierarchy needs to be modified in the repositories so sbt can locate it correctly.
The only syntax that did work was this
addSbtPlugin("com.tuplejump" % "sbt-yeoman" % "0.7.1-SNAPSHOT")
because sbt-yeoman is correctly named in the sonatype repository.
When i try to use the 0.7.1-SNAPSHOT,
sbt-yeoman
is found butplay-yeoman
is not.