[ANN] gradle-gatling-plugin

In case anyone is interested: we’ve written a plugin for gradle to launch gatling simulations.

Available directly from https://github.com/alphagov/gradle-gatling-plugin, but not currently in any public maven/ivy repo.

Any feedback appreciated.

Hello Alex,

Thanks for writing a plugin. I tried to use it but got multiple bindings for SLF4J module:

Executing gatling scenarios: [Workflow_prf01Scenario]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/loadrunner/.gradle/wrapper/dists/gradle-1.12-bin/2qvnajdoo11hasdfkikjaci26k/gradle-1.12/lib/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/loadrunner/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.1.2/b316e9737eea25e9ddd6d88eaeee76878045c6b2/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]

How could I exclude one of the dependencies and which one I should use?

Thanks in advance,

Basically, Gradle pulls logback on its own, but Gatling does too.
You’ll need to exclude logback on gatling-core (see https://gradle.org/docs/current/userguide/dependency_management.html, section 51.4.7 on how te exclude dependencies).

But still, you seems to use Gradle 1.12, which has been released almost a yaer ago day to day (one year exactly tomorrow).
There have been half a dozen new Gradle releases since then, and its quite possible this issue has been fixed for a long time… Consider upgrading your Gradle first :slight_smile: