Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

addSbtPlugin("io.scalaland" % "sbt-swagger-2" % sbtSwagger2Version) does not exist #3

Open
akkihan opened this issue Apr 15, 2020 · 3 comments

Comments

@akkihan
Copy link

akkihan commented Apr 15, 2020

Hello,
I followed your readme and tried to add
addSbtPlugin("io.scalaland" % "sbt-swagger-2" % sbtSwagger2Version)
to my plugins.sbt but it does not find sbtSwagger2Version.
Am I doing something wrong?

@MateuszKubuszok
Copy link
Member

sbtSwagger2Version is a placeholder for a variable or a value:

val sbtSwagger2Version = "0.1.8"
addSbtPlugin("io.scalaland" % "sbt-swagger-2" % sbtSwagger2Version)

This convention is used by virtually all other projects to avoid the need to update README every time they release.

@akkihan
Copy link
Author

akkihan commented Apr 20, 2020

Hi, thanks for your answer.
Unfortunately, in my case, it does not create any swagger and I get 0 Swagger file generated. Although I have my controllers and dto s annotated.
Do you have any suggestions for it?

BR

@MateuszKubuszok
Copy link
Member

Too little information to tell. What is your build.sbt? How do you run swagger generation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants