# Gatling gradle dependencies access to gatling module

**URL:** <https://community.gatling.io/t/gatling-gradle-dependencies-access-to-gatling-module/6722>\
**Category:** Gatling (Open-Source)\
**Created:** [April 29, 2022, 6:46pm UTC](https://community.gatling.io/t/gatling-gradle-dependencies-access-to-gatling-module/6722 "2022-04-29T18:46:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andriiiaremenko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/andriiiaremenko/32/894_2.png) [@andriiiaremenko](https://community.gatling.io/u/andriiiaremenko)\
**Post date:** [April 29, 2022, 6:46pm UTC](https://community.gatling.io/t/gatling-gradle-dependencies-access-to-gatling-module/6722/1 "2022-04-29T18:46:00Z")

</div>

Hi, gatling community!

I have the next question.

Why are the classes I linked to the project in the gatling module not available when adding a dependency to the gradle?

For example, gradle build file is:

```auto
plugins {
    id 'java'
    id 'io.gatling.gradle' version '3.7.6.2'
}

repositories {
    mavenCentral()
}

gatling {
    logLevel = 'WARN'
    logHttp = 'NONE'
}

```

I wanna add to my project library Gson to work with JSON (read, write, create new files and pass them as a raw payload file). So I add to build file dependencies block like this one:

```auto
dependencies {
    implementation "com.google.code.gson:gson:2.9.0"
}

```

After I’m going to my module and I can’t to use this functionality:

```auto
my-gatling-performance-test-project--
|--load-test-module
--|--src
----|--gatling
------|-- // I can't use gson library here
----|--main
------|-- // I can use gson library (but when I try use these classes from gatling module above - links doesn't works. System says that classes not found)
----|--test
------|-- // I can use gson library (but when I try use these classes from gatling module above - links doesn't works. System says that classes not found)

```

How to use dependent libraries inside gatling module?

Thanks!

---

<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:** [April 29, 2022, 7:00pm UTC](https://community.gatling.io/t/gatling-gradle-dependencies-access-to-gatling-module/6722/2 "2022-04-29T19:00:40Z")

</div>

It’s all in the [documentation](https://gatling.io/docs/gatling/reference/current/extensions/gradle_plugin/#dependency-management) 🙂

Because the configuration must be `gatlingImplementation`, not `implementation`.

---

<div class="post-metadata">

**Author:** ![andriiiaremenko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/andriiiaremenko/32/894_2.png) [@andriiiaremenko](https://community.gatling.io/u/andriiiaremenko)\
**Post date:** [May 2, 2022, 1:08pm UTC](https://community.gatling.io/t/gatling-gradle-dependencies-access-to-gatling-module/6722/3 "2022-05-02T13:08:18Z")

</div>

Thank you very much! Yeap, it’s working for now!
