0

I have a maven module which has some common code for integration tests in test sources directory. I build a test-jar containing these classes.

in Maven I would use following (as said in http://maven.apache.org/guides/mini/guide-attached-tests.html):

<dependency>
  <groupId>com.myco.app</groupId>
  <artifactId>foo</artifactId>
  <version>1.0-SNAPSHOT</version>
  <type>test-jar</type> <!-- this is the important part-->
  <scope>test</scope>
</dependency>

in order to use this in another module.

How do I define such dependency on test-jar in Play (or SBT)?

4

1 回答 1

2

您必须使用“测试”分类器,如本文档中所述:

"com.myco.app" % "foo" % "1.0-SNAPSHOT" % "test" classifier "tests"
于 2013-07-18T14:48:23.817 回答