Paul
Paul

Reputation: 393

Specify scope of dependency in SBT

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

Answers (1)

Antot
Antot

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

Related Questions