# How to configure Gatling in Gradle with Kotlin-style?

**URL:** <https://community.gatling.io/t/how-to-configure-gatling-in-gradle-with-kotlin-style/7421>\
**Category:** Gatling (Open-Source)\
**Created:** [December 13, 2022, 8:17am UTC](https://community.gatling.io/t/how-to-configure-gatling-in-gradle-with-kotlin-style/7421 "2022-12-13T08:17:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thorin.bondy](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@thorin.bondy](https://community.gatling.io/u/thorin.bondy)\
**Post date:** [December 13, 2022, 8:17am UTC](https://community.gatling.io/t/how-to-configure-gatling-in-gradle-with-kotlin-style/7421/1 "2022-12-13T08:17:04Z")

</div>

I tried to convert the Gatling Gradle example from Groovy to Kotlin.

I do not know how to convert this part (Groovy-style Gradle):

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

```

I tried (Kotlin-style Gradle):

```auto
gatling {
    logLevel = "WARN"
    logHttp = "NONE"
}

```

But it does not accept it because of:

> Cannot access ‘io.gatling.gradle.JvmConfigurable.Trait.FieldHelper’ which is a supertype of ‘io.gatling.gradle.GatlingPluginExtension’. Check your module classpath for missing or conflicting dependencies

That is like Chinese to me (a language which I do not speak I should add).

See [my fork](https://github.com/pandoras-toolbox/gatling-gradle-plugin-demo-java-for-issue-4091/blob/main/subprojects/load/load.gradle.kts) of a Gatling example.

How to do this with Kotlin in Gradle?

---

<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:** [December 13, 2022, 8:18am UTC](https://community.gatling.io/t/how-to-configure-gatling-in-gradle-with-kotlin-style/7421/2 "2022-12-13T08:18:13Z")

</div>

Please see [Gradle: Can't configure gatling section when using build.gradle.kts · Issue #4337 · gatling/gatling · GitHub](https://github.com/gatling/gatling/issues/4337)

We’re about to release 3.9.0 with the fix.

---

<div class="post-metadata">

**Author:** ![thorin.bondy](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@thorin.bondy](https://community.gatling.io/u/thorin.bondy)\
**Post date:** [December 13, 2022, 8:55am UTC](https://community.gatling.io/t/how-to-configure-gatling-in-gradle-with-kotlin-style/7421/3 "2022-12-13T08:55:32Z")

</div>

Sounds good, thank you.

---

<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:** [December 13, 2022, 9:18am UTC](https://community.gatling.io/t/how-to-configure-gatling-in-gradle-with-kotlin-style/7421/4 "2022-12-13T09:18:55Z")

</div>


