I would like to create an integration tests project that tests runs three different web services in different classloaders. All the classloaders will have a common parent which holds the "test" classpath of the integration test project.
I am not sure how this should be done with SBT. I am trying something like:
name := "Multiple classpaths scratch pad"
version := "1.0"
scalaVersion := "2.11.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "2.1.6" % "test"
val deps1 = settingKey[Seq[sbt.ModuleID]]("Class path of library1")
val deps2 = settingKey[Seq[sbt.ModuleID]]("Class path of library2")
deps1 += "org.sample.organisation2" %% "projectToTest1" % "2.1.6" % "test"
deps2 += "org.sample.organisation2" %% "projectToTest2" % "3.4" % "test"
And I would like to get all the resolved dependencies including transitive dependencies from deps1 and deps2 as a String of URLs and passing down the unit tests where I can create the classloaders.
Currently it doesn't even compile.
How should that be done?
Cheers,
Lucho