dimanche 3 novembre 2019

How to declare test scope dependencies in Leiningen?

How to declare dependencies to be used in tests only, i.e. the deployed artefact doesn't need them?

The equivalent in maven is <scope>test</scope>:

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.12</version>
    <scope>test</scope>
</dependency>

The equivalent in sbt is % "test":

libraryDependencies += "org.apache.derby" % "derby" % "10.4.1.3" % "test"

Aucun commentaire:

Enregistrer un commentaire