SBT.解决 play sbt-plugin 的依赖关系 [英] SBT. Resolving dependencies for play sbt-plugin

查看:30
本文介绍了SBT.解决 play sbt-plugin 的依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 sbt 0.13.1(myProject/project/build.properties/sbt.version=0.13.1)

I use sbt 0.13.1 (myProject/project/build.properties/ has sbt.version=0.13.1)

在我的 myProject/project/play.sbt

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases"

addSbtPlugin("play" % "sbt-plugin" % "2.2.1")

我尝试了很多版本,但无论我做什么,它都无法解决这种依赖关系.我最终会遇到这样的错误:

I tried many versions, but whatever I do, It can not resolve that dependency. I end up with error like this:

[error] (*:update) sbt.ResolveException: unresolved dependency: play#sbt-plugin;2.2.1: not found

我什至尝试将 scalaVersion := "2.9.1" 放入 play.sbt 以与存储库保持一致(以防万一):

I even try to put scalaVersion := "2.9.1" to play.sbt to be consistent with repositories (in case if does matter):

/typesafe/releases/play/sbt-plugin/scala_2.9.1/sbt_0.11.3/

但它不起作用.

诶?

推荐答案

设置项目/plugin.sbt:

Set project/plugin.sbt:

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")

还有 build.properties 中正确版本的 sbt:

Also the correct version of sbt in build.properties:

sbt.version=0.13.0

玩 2.2 的完整迁移指南

这篇关于SBT.解决 play sbt-plugin 的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆