Alexander Chepurnoy
Alexander Chepurnoy

Reputation: 615

SBT + ScalaTest: Custom Dependencies For Test

I want to test different branches within one SBT-powered projects, e.g. Feature1Spec depends on mylib_feature1.jar, Feature2Spec depends on mylib_feature2.jar and so on. How is this possible?

Upvotes: 0

Views: 53

Answers (1)

Alexey Romanov
Alexey Romanov

Reputation: 170713

Dependencies are for a project as a whole. There are two options:

  1. Just have all the dependencies together. This is the simplest and should work for most cases.

  2. It's very easy to create subprojects in SBT. Put Feature1Spec, Feature2Spec, etc. in different subprojects which depend on both the main project and the extra dependencies you want.

Upvotes: 1

Related Questions