Standalone setup
Sniffy comes with an uber-jar which doesn’t require any additional dependencies to be installed.
Just grab the sniffy-3.1.2.jar
from our releases page and add it to the classpath of your application.
Warning
|
If you’re using an application server like Tomcat and you’re defining a datasource on application server level, sniffy-3.1.2.jar should be added to the common classloader classpath and should be absent in web application classpath.
|
Spring Boot Integration
If you’re using Spring Boot, add the dependency below to your project in order to use Sniffy.
Maven
<dependency>
<groupId>io.sniffy</groupId>
<artifactId>sniffy-web</artifactId>
<version>3.1.2</version>
</dependency>
Gradle
dependencies {
compile 'io.sniffy:sniffy-web:3.1.2'
}
Sniffy Test
Sniffy artifacts for unit test frameworks are distributed via Maven Central repository and can be downloaded using your favorite package manager.
JUnit
Maven
<dependency>
<groupId>io.sniffy</groupId>
<artifactId>sniffy-junit</artifactId>
<version>3.1.2</version>
<scope>test</scope>
</dependency>
Gradle
dependencies {
testCompile 'io.sniffy:sniffy-junit:3.1.2'
}
Spring Test
Maven
<dependency>
<groupId>io.sniffy</groupId>
<artifactId>sniffy-spring-test</artifactId>
<version>3.1.2</version>
<scope>test</scope>
</dependency>
Gradle
dependencies {
testCompile 'io.sniffy:sniffy-spring-test:3.1.2'
}
TestNG
Maven
<dependency>
<groupId>io.sniffy</groupId>
<artifactId>sniffy-testng</artifactId>
<version>3.1.2</version>
<scope>test</scope>
</dependency>
Gradle
dependencies {
testCompile 'io.sniffy:sniffy-testng:3.1.2'
}