anchor.diff:  = Gatling Plugin for Gradle
   :gatlingToolVersion: 2.2.2
  +:toc: macro
   
   image:http://gatling.io/images/gatling-logo.png[Gatling, 100, 90, link="http://gatling.io/"]
   
   *Master branch* image:https://api.travis-ci.org/lkishalmi/gradle-gatling-plugin.svg?branch=master["Build Status", link="https://travis-ci.org/lkishalmi/gradle-gatling-plugin"]
  +
  +toc::[]
   
   == Installation
   
  
positive.code: 
  === Examples
  
  . Run all simulations
  
    $ gradle gatlingRun
  
  . Run single simulation implemented in `com.project.simu.MySimulation` class
  
    $ gradle gatlingRun-com.project.simu.MySimulation
  
  == Dependency Management
  
  This plugin defines two configurations `gatlingCompile` and `gatlingRuntime`.
  By default plugins adds `gatling` libraries and project's classes and tests classes to `gatlingCompile` configurations
  Additional dependencies can be added by plugin's users.
  
  === Examples
  
  [source,groovy]
  ----
  dependencies {
      gatlingCompile 'org.apache.commons:commons-lang3:3.4' <1>
      gatlingRuntime 'cglib:cglib-nodep:3.2.0' <2>
  }
  ----
  <1> adding `commons-lang3` to compile classpath for `Gatling` simulations.
  <2> adding `cglib` to runtime classpath for `Gatling` simulations.
  
negative.code: 
  == Project Layout
  
  === Folders overview
  
  The plugin uses `src/gatling` as its source root.
  There are several folders serving different purposes under the source root.
  
  * Simulation sources direcrory
  * Feeder data directory
  * Request bodies directory
  * Configuration directory
  
  This plugin supports two project layouts.
  
  * Standard Gradle/Maven layout
  * Gatling-like layout
  