Reputation: 71
I Was using play framework 2.5. My scala version is 2.11.8. When I migrated to Paly 2.6, I'm getting the following error
RuntimeException: java.lang.NoClassDefFoundError: play/api/libs/ws/WSRequest$class
Upvotes: 0
Views: 296
Reputation: 8263
WS was extracted to it's own library, so you need to add in the build.sbt
:
libraryDependencies += ws
You can find more details in the official documentation: https://www.playframework.com/documentation/2.6.x/ScalaWS
And do not forget the migration guide: https://www.playframework.com/documentation/2.6.x/WSMigration26
Upvotes: 1