# Build and run performancetest from gradle

**URL:** <https://community.gatling.io/t/build-and-run-performancetest-from-gradle/2224>\
**Category:** Gatling (Open-Source)\
**Created:** [April 21, 2015, 1:33pm UTC](https://community.gatling.io/t/build-and-run-performancetest-from-gradle/2224 "2015-04-21T13:33:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ulrik\_Skyt](https://avatars.discourse-cdn.com/v4/letter/u/9f8e36/32.png) [@Ulrik\_Skyt](https://community.gatling.io/u/Ulrik_Skyt)\
**Post date:** [April 21, 2015, 1:33pm UTC](https://community.gatling.io/t/build-and-run-performancetest-from-gradle/2224/1 "2015-04-21T13:33:50Z")

</div>

Hi,

I have a project where we build using gradle, and we have had a setup where this also ran a Gatling performancetest from gradle.

So Gatling jar-files are downloaded as dependencies during build (gatling-app and gatling-charts-highcharts), and there is no installation of gatling-charts-highcharts-bundle-2.1.x on the build server.

So I don’t have the gatling.sh script to call.

Therefore I use gradle scala plugin to compile scala files and invoke the io.gatling.app.Gatling class in a custom task. But Gatling won’t find my Simulation classes.  
Contrary to the documentation, Gatling does NOT accept the argument --binaries-folder which might have solved my problem.

Is there a standard solution to this??

Best regards  
Ulrik Skyt

---

<div class="post-metadata">

**Author:** ![Eliade](https://avatars.discourse-cdn.com/v4/letter/e/f19dbf/32.png) [@Eliade](https://community.gatling.io/u/Eliade)\
**Post date:** [October 6, 2015, 2:18pm UTC](https://community.gatling.io/t/build-and-run-performancetest-from-gradle/2224/2 "2015-10-06T14:18:15Z")

</div>

Hi, this solution works for me:  
[http://blog.jdriven.com/2015/08/load-testing-our-robots-api-with-gatling/#comment-277985](http://blog.jdriven.com/2015/08/load-testing-our-robots-api-with-gatling/#comment-277985)
