# Initial Gatling setup - what is the recommended / best way?!

**URL:** <https://community.gatling.io/t/initial-gatling-setup-what-is-the-recommended-best-way/4627>\
**Category:** Gatling (Open-Source)\
**Created:** [November 6, 2018, 9:31pm UTC](https://community.gatling.io/t/initial-gatling-setup-what-is-the-recommended-best-way/4627 "2018-11-06T21:31:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siegfried\_Goeschl](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@Siegfried\_Goeschl](https://community.gatling.io/u/Siegfried_Goeschl)\
**Post date:** [November 6, 2018, 9:31pm UTC](https://community.gatling.io/t/initial-gatling-setup-what-is-the-recommended-best-way/4627/1 "2018-11-06T21:31:08Z")

</div>

Hi folks,

I’m currently preparing a presentation and I’m a bit puzzled about the best way of a Gatling setup - I think of something moron-proof (aka suitable for me)

There are multiple ways of bootstrapping Gatling but none of them make me entirely happy 🙂

My path to happiness

- Simple setup for beginners (QA)
- Gives you IDE integration for writing tests
- Gives you command-line integration for your CI server (Maven, Gradle)
- Can be easily put under version control (no libraries)

The different approaches I know of

**1) Download the Gatling distribution**

**\*** This gives you ready-to-use samples and shell/batch files

- AFAIK there is no way to wire that setup with your IDE (auto-complete, syntax errors, method navigation) so that would require writing Scala with a text editor?
- Windows batch files suck suck since CTRL-C does not terminate the started JVM (to the best of my knowledge)
- You should not take that under version control - 400 MB of libraries

**2) Use The Gatling Maven Archetype**

- Gives you an IDE integration for recording/writing tests
- Does not contain the “computer database” samples
- Does not use the “gatling-maven-plugin” so little you can do on the the command line
- Adding “gatling-maven-plugin” is of course possible but with little Maven/Gatling know-how this is a blocker

**3) Craft Your Own Maven pom.xml**

- Based on [https://gatling.io/docs/3.0/extensions/maven\_plugin/](https://gatling.io/docs/3.0/extensions/maven_plugin/)
- That is more or less advanced stuff
- Again - with little Maven/Gatling know-how this is a blocker
- Does not contain the “computer database” samples

So the questions are

- Is there something I don’t know?
- How are other people doing that?

Thanks in advance,

Siegfried Goeschl

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [November 6, 2018, 9:44pm UTC](https://community.gatling.io/t/initial-gatling-setup-what-is-the-recommended-best-way/4627/2 "2018-11-06T21:44:51Z")

</div>

[https://github.com/gatling/gatling-maven-plugin-demo](https://github.com/gatling/gatling-maven-plugin-demo)

---

<div class="post-metadata">

**Author:** ![Siegfried\_Goeschl](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@Siegfried\_Goeschl](https://community.gatling.io/u/Siegfried_Goeschl)\
**Post date:** [November 6, 2018, 9:50pm UTC](https://community.gatling.io/t/initial-gatling-setup-what-is-the-recommended-best-way/4627/3 "2018-11-06T21:50:27Z")

</div>

Hi Stephane, what do you think about making this link more prominent, e.g. “Getting Started”?

---

<div class="post-metadata">

**Author:** ![Siegfried\_Goeschl](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@Siegfried\_Goeschl](https://community.gatling.io/u/Siegfried_Goeschl)\
**Post date:** [November 6, 2018, 9:53pm UTC](https://community.gatling.io/t/initial-gatling-setup-what-is-the-recommended-best-way/4627/4 "2018-11-06T21:53:56Z")

</div>

Is there something similar for (aka ready-to-use) for Gradle?

---

<div class="post-metadata">

**Author:** ![sbrevet](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/sbrevet/32/830_2.png) [@sbrevet](https://community.gatling.io/u/sbrevet)\
**Post date:** [November 3, 2022, 7:43am UTC](https://community.gatling.io/t/initial-gatling-setup-what-is-the-recommended-best-way/4627/5 "2022-11-03T07:43:20Z")

</div>

> **[GitHub - gatling/gatling-gradle-plugin-demo-java](https://github.com/gatling/gatling-gradle-plugin-demo-java)**
>
> Contribute to gatling/gatling-gradle-plugin-demo-java development by creating an account on GitHub.

You can find documentation and links to the different demo project in [Extensions](https://gatling.io/docs/gatling/reference/current/extensions/).  
note: search for “demo” in the page for each extension.

We are open to suggestions to improve our documentations. PR welcome

Cheers!

---

<div class="post-metadata">

**Author:** ![GeMi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/gemi/32/939_2.png) [@GeMi](https://community.gatling.io/u/GeMi)\
**Post date:** [November 3, 2022, 10:34am UTC](https://community.gatling.io/t/initial-gatling-setup-what-is-the-recommended-best-way/4627/6 "2022-11-03T10:34:59Z")

</div>

First of all why you referring to Scala - Java implementation is easier and work perfectly.

**Download the Gatling distribution** - referring to JAVA version: you can import this Bundle to IDE (IntelliJ), and everything working as should - auto-complete, syntax errors, method navigation etc.

**Use The Gatling Maven Archetype** - as I known this option is not developed and maintained anymore.

You can use as @slandelle mentioned:  
[https://github.com/gatling/gatling-maven-plugin-demo](https://github.com/gatling/gatling-maven-plugin-demo)

Or project from [Gatling Academy](https://academy.gatling.io/) - I think the best place to start.

Or you can use My project for that - in this project you have all official examples and my solutions for cases from this community:

[https://github.com/gemiusz/gatling-examples-maven-java](https://github.com/gemiusz/gatling-examples-maven-java)
