Reputation: 615
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
Reputation: 170713
Dependencies are for a project as a whole. There are two options:
Just have all the dependencies together. This is the simplest and should work for most cases.
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