根据doc(https://github.com/iheartradio/play-swagger),我们需要将swagger sbt插件依赖项添加到plugins.sbt。
项目/ plugins.sbt中的我定义了解析器
resolvers += "iheart-sbt-plugin-releases" at "https://dl.bintray.com/iheartradio/sbt-plugins"
addSbtPlugin("com.iheart" % "sbt-play-swagger" % "0.5.2-PLAY2.4")
但是,当运行sbt compile时,它会抛出以下错误:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.iheart#play-swagger_2.10;0.5.2-PLAY2.4: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.iheart:play-swagger_2.10:0.5.2-PLAY2.4 ((com.iheart.sbtPlaySwagger.SwaggerPlugin) SwaggerPlugin.scala#L28)
有人可以提供帮助吗?