[英]SBT|Scala|Cucumber - Unresolved Dependencies during installation
With sbt 0.13.8 and Scala 2.10.5 , which dependencies are required in build.sbt and plugins.sbt to install Cucumber ? 使用sbt 0.13.8和Scala 2.10.5时 ,build.sbt和plugins.sbt需要哪些依赖项才能安装Cucumber?
SBT does not resolve info.cukes dependencies below. SBT无法解决以下info.cukes依赖关系。
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-library" % "2.10.5",
"junit" % "junit" % "4.11" % "test",
"org.scala-lang" % "scala-compiler" % "2.10.5",
"org.scala-lang" % "scala-reflect" % "2.10.5",
"info.cukes" % "cucumber-scala" % "1.1.6",
"info.cukes" % "cucumber-core" % "1.1.6"
)
There is a different build of cucumber-scala for each version of Scala. 每个版本的Scala都有一个不同的黄瓜scala版本。 So, you have to mention the desired Scala version.
因此,您必须提及所需的Scala版本。 You can provide it in the name of artifact, for example:
您可以以工件的名称提供它,例如:
libraryDependencies += "info.cukes" % "cucumber-scala_2.12" % "1.2.4"
or you can use the SBT shortcut "%%" which will substitute the correct Scala version for you: 或者,您可以使用SBT快捷方式“ %%”代替您的正确Scala版本:
libraryDependencies += "info.cukes" %% "cucumber-scala" % "1.2.4"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.