tuplejump / play-yeoman

Play + Yeoman integration sbt and play plugins
Apache License 2.0
238 stars 57 forks source link

play-yeoman "0.7.1-SNAPSHOT" is not published #55

Closed diwa-zz closed 10 years ago

diwa-zz commented 10 years ago

When i try to use the 0.7.1-SNAPSHOT, sbt-yeoman is found but play-yeoman is not.

milliondreams commented 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")
diwa-zz commented 10 years ago

Thanks for the tip. It works for me now.

sihingkk commented 10 years ago

I still reciving in yo-demo, even if snapshots resolver is added: com.tuplejump#play-yeoman_2.11;0.7.1-SNAPSHOT: not found

FoxxMD commented 10 years ago

+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

milliondreams commented 10 years ago

@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")
FoxxMD commented 10 years ago

@milliondreams Sorry I made a typo in my last comment, I am using && and still recieving the error

yeoman

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.

tuplefail

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.