# GatlingPropertiesBuilder deprecated in Gatling.core version 3.11.2

**URL:** <https://community.gatling.io/t/gatlingpropertiesbuilder-deprecated-in-gatling-core-version-3-11-2/8988>\
**Category:** Gatling (Open-Source)\
**Created:** [May 14, 2024, 1:27pm UTC](https://community.gatling.io/t/gatlingpropertiesbuilder-deprecated-in-gatling-core-version-3-11-2/8988 "2024-05-14T13:27:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slaym](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Slaym](https://community.gatling.io/u/Slaym)\
**Post date:** [May 14, 2024, 1:27pm UTC](https://community.gatling.io/t/gatlingpropertiesbuilder-deprecated-in-gatling-core-version-3-11-2/8988/1 "2024-05-14T13:27:10Z")

</div>

**Gatling version** : 3.11.2 (must be up to date)  
**Gatling flavor** : java  
**Gatling build tool** : maven

Hello, I work with gatling to write a java script test load.

I want to lunch the script in java code main function as is mentioned in this discussion :

> [@How to run Gatling from source](https://community.gatling.io/t/how-to-run-gatling-from-source/6958):
>
> Hey there!) I have some experience with the contribution to Gatling and during this I used simple tests to check new functionality, etc. But, currenlty I would like to run a scenario. A long time ago, if I clearly remember, I launched some scenarios, but unfortunately I forgot how. Can you provide steps or instructions for that? Thank you!

But the class GatlingPropertiesBuilder does not exist anymore in the Gatling 3.11.2 version

So my questions :

1. This class is what it was replaced by another class ?
2. How I can run my simulation script in main java function in Engine Class like is described in the conversion :

```auto
  public static void main(String[] args) {
    GatlingPropertiesBuilder props = new GatlingPropertiesBuilder()
      .resourcesDirectory(IDEPathHelper.mavenResourcesDirectory.toString())
      .resultsDirectory(IDEPathHelper.resultsDirectory.toString())
      .binariesDirectory(IDEPathHelper.mavenBinariesDirectory.toString());

    Gatling.fromMap(props.build());
  }

```

thanks in advance

---

<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:** [May 14, 2024, 1:31pm UTC](https://community.gatling.io/t/gatlingpropertiesbuilder-deprecated-in-gatling-core-version-3-11-2/8988/2 "2024-05-14T13:31:33Z")

</div>

Hello,

These classes were removed.  
You now have to launch Gatling from your build tool, which is something you can easily do from your IDE.  
Please check [Build tool plugins for Gatling](https://docs.gatling.io/reference/extensions/build-tools/)

---

<div class="post-metadata">

**Author:** ![Slaym](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Slaym](https://community.gatling.io/u/Slaym)\
**Post date:** [May 14, 2024, 1:40pm UTC](https://community.gatling.io/t/gatlingpropertiesbuilder-deprecated-in-gatling-core-version-3-11-2/8988/3 "2024-05-14T13:40:27Z")

</div>

Hello slandelle,  
Thanks for your reply 🙂

So, I understand that running a script from source code is no longer possible in version 3.11.2 ?  
AND I must use maven (or gradel) commands like : `mvn gatling:test`

Please do you confirm this to don’t waste time finding a solution 🙂

---

<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:** [May 14, 2024, 1:44pm UTC](https://community.gatling.io/t/gatlingpropertiesbuilder-deprecated-in-gatling-core-version-3-11-2/8988/4 "2024-05-14T13:44:10Z")

</div>

Yes, that’s exactly what I’m saying.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [June 13, 2024, 1:44pm UTC](https://community.gatling.io/t/gatlingpropertiesbuilder-deprecated-in-gatling-core-version-3-11-2/8988/5 "2024-06-13T13:44:12Z")

</div>

Closed on June 13, 2024, 1:44pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
