Skip to content

Installing

Andrei Ciobanu edited this page May 23, 2017 · 32 revisions

From sources:

Clone it from github:

git clone https://github.com/nomemory/mockneat.git

Build the "fat jar" - the jar that contains MockNeat and all its dependencies:

gradle shadowJar

This will create in the folder ./build/libs/ there a .jar file: mockneat-<version>-all.jar.

Copy this jar into your projects classpath and you are good to go.

With gradle

To check the latest version please check the library's jcenter page.

Add jcenter() as a repository in your gradle.build file:

repositories {
    // something else
    jcenter()
}

Add the following line a dependency:

dependencies {
      // something else
     compile 'net.andreinc.mockneat:mockneat:0.0.9'
}

With Maven

To check the latest version please check the library's jcenter page.

Add jcenter as a repository.

pom.xml dependency:

<dependency>
  <groupId>net.andreinc.mockneat</groupId>
  <artifactId>mockneat</artifactId>
  <version>0.0.9</version>
  <type>pom</type>
</dependency>