如何在运行时覆盖Play 2.0依赖?

时间:2012-04-25 16:01:32

标签: sbt playframework-2.0

我需要在项目中覆盖play2.0的运行时依赖性。 在Play 2.0项目上运行play dependencies我可以看到

  

com.google.guava:guava:10.0.1 | org.seleniumhq.selenium:selenium-api:2.16.1,play:play_2.9.1:2.0 | as guava.jar

但我的应用程序依赖于番石榴:12.0-rc2。

如何使用sbt或其他方式覆盖此依赖项?

1 个答案:

答案 0 :(得分:3)

只需在build.scala中添加以下依赖项:

  

“com.google.guava”%“guava”%“12.0-rc2”

或从sbt命令行(在项目目录中):

  

设置seq(seq(libraryDependencies + =“com.google.guava”%“guava”%“12.0-rc2”):_ *)

     

显示dependency-classpath

如果下载成功,将显示

show dependency-classpath

相关问题