Error when adding the Swagger library

7 views
Skip to first unread message

Pesia Soloveichik

unread,
Nov 15, 2017, 10:54:09 AM11/15/17
to Swagger

I'm using Java Play 2.5 and I'm trying to add the Swagger plugin to my project.


In build.sbt I added the following code:

libraryDependencies += "io.swagger" %% "swagger-play2" % "1.5.3"


In application.conf I added the following:

play.modules {
  enabled += "play.modules.swagger.SwaggerModule"
}


Then I ran "sbt clean compile" - It compiled successfully.


But when I try to use it in my code:

import io.swagger.*;


I get the following error:

"error: package io does not exist"


Any idea how to solve that?



Reply all
Reply to author
Forward
0 new messages