ayush / swagger-play2

Enables Swagger on Play 2.0
http://swagger.wordnik.com
18 stars 6 forks source link

Build error #5

Closed evaneus closed 12 years ago

evaneus commented 12 years ago

Hi, Trying to follow the instructions in the Readme, everything works ok until....

[swagger-play2] $ publish-local

[error] {file:/Users/eeustace/devt/swagger/swagger-play2/}swagger-play2/*:update: sbt.ResolveException: unresolved dependency: com.wordnik#swagger-core;1.1-SNAPSHOT.121132: not found

I saw that swagger-core;1.1-SNAPSHOT.121132 does not exist here: http://repo1.maven.org/maven2/com/wordnik/swagger-core/

So tried editing Build.scala and changing the version to : "1.1-SNAPSHOT.121130"

When I do that it finds the dependencies, a number of compile errors occur because package com.wordnik.swagger.discover does not seem to be found.

I tried it with a few different versions of swagger-core and the same compilation error occurs.

Thanks

P.S. What I'd really like to do is just add the dependencies I need to my own Play2 project and drop in the Objects/Classes from swagger-play2. I tried that too - with the same compilation errors resulting.

ayush commented 12 years ago

Can you try building with swagger-core from https://github.com/ayush/swagger-core ? I've updated the readme to reflect this.

Essentially clone, build and deploy this fork of swagger-core using "ant deploy". This fork works with scala 2.9.1 which Play 2.0 requires and has additional annotations for supporting Play 2.0 style controllers. https://github.com/ayush/swagger-core

Will be merging this into the main wordnik swagger-core as a play2 module shortly.

evaneus commented 12 years ago

I built with this fork, dropped the lib in [play-app]/lib (for now) and it works.

Thanks!