File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,18 @@ pomExtra := (
7676 </developers >
7777)
7878
79- // for testing with partest
80- libraryDependencies += " org.scala-lang.modules " %% " scala-partest-interface " % " 0.2 " % " test "
79+ // default value must be set here
80+ TestKeys .includeTestDependencies := true
8181
8282// the actual partest the interface calls into -- must be binary version close enough to ours
8383// so that it can link to the compiler/lib we're using (testing)
84- libraryDependencies += " org.scala-lang.modules" %% " scala-partest" % " 1.0-RC5" % " test"
84+ libraryDependencies ++= (
85+ if (TestKeys .includeTestDependencies.value)
86+ Seq (" org.scala-lang.modules" %% " scala-partest" % " 1.0-RC5" % " test" ,
87+ " org.scala-lang.modules" %% " scala-partest-interface" % " 0.2" % " test" )
88+ else Seq .empty
89+ )
90+
8591
8692// necessary for partest -- see comments in its build.sbt
8793conflictWarning ~= { _.copy(failOnConflict = false ) }
Original file line number Diff line number Diff line change 1+ object TestKeys {
2+ import sbt .settingKey
3+
4+ // for testing with partest
5+ val includeTestDependencies = settingKey[Boolean ](" Doesn't declare test dependencies." )
6+ }
You can’t perform that action at this time.
0 commit comments