Permalink
Browse files

define test-interface dependency in build in one place

  • Loading branch information...
1 parent 6d4e513 commit ab0d61c3fe457a2355fc82b166a6f66f758fe990 @harrah harrah committed Jun 28, 2013
Showing with 3 additions and 4 deletions.
  1. +2 −4 project/Sbt.scala
  2. +1 −0 project/Util.scala
View
6 project/Sbt.scala
@@ -79,11 +79,9 @@ object Sbt extends Build
// Apache Ivy integration
lazy val ivySub = baseProject(file("ivy"), "Ivy") dependsOn(interfaceSub, launchInterfaceSub, crossSub, logSub % "compile;test->test", ioSub % "compile;test->test", launchSub % "test->test") settings(ivy, jsch, testExclusive)
// Runner for uniform test interface
- lazy val testingSub = baseProject(file("testing"), "Testing") dependsOn(ioSub, classpathSub, logSub, launchInterfaceSub, testAgentSub) settings(libraryDependencies += "org.scalatest" % "test-interface" % "1.0-SNAP7")
+ lazy val testingSub = baseProject(file("testing"), "Testing") dependsOn(ioSub, classpathSub, logSub, launchInterfaceSub, testAgentSub) settings(testInterface)
// Testing agent for running tests in a separate process.
- lazy val testAgentSub = project(file("testing/agent"), "Test Agent") settings(
- libraryDependencies += "org.scalatest" % "test-interface" % "1.0-SNAP7"
- )
+ lazy val testAgentSub = project(file("testing/agent"), "Test Agent") settings(testInterface)
// Basic task engine
lazy val taskSub = testedBaseProject(tasksPath, "Tasks") dependsOn(controlSub, collectionSub)
View
1 project/Util.scala
@@ -162,6 +162,7 @@ object Common
lazy val jsch = lib("com.jcraft" % "jsch" % "0.1.46" intransitive() )
lazy val sbinary = lib("org.scala-tools.sbinary" %% "sbinary" % "0.4.1" )
lazy val scalaCompiler = libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _ )
+ lazy val testInterface = lib("org.scalatest" % "test-interface" % "1.0-SNAP7")
}
object Licensed
{

0 comments on commit ab0d61c

Please sign in to comment.