I want to test different branches within one SBT-powered projects, eg Feature1Spec depends on mylib_feature1.jar, Feature2Spec depends on mylib_feature2.jar and so on. How is this possible?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.