Reputation: 393
I have dependency which is required for unit tests(test scope) and integration tests(it scope), how I can specify 2 scopes in SBT.
"com.somelib" % "somelib" % "1.1.1" % "test"
Thanks.
Upvotes: 2
Views: 670
Reputation: 3964
For unit tests:
"com.somelib" % "somelib" % "1.1.1" % "test"
For integration tests:
"com.somelib" % "somelib" % "1.1.1" % "it"
For both:
"com.somelib" % "somelib" % "1.1.1" % "it,test"
More info in the official docs.
Upvotes: 4