kulya / jmeter-gradle-plugin

Other
40 stars 27 forks source link

Add jmeter plugins #20

Closed michaelpisula closed 11 years ago

michaelpisula commented 11 years ago

I tried adding a jmeter plugin by using:

jmeterRun.configure {
    jmeterPluginJars = ["foobar.jar"]
}

This did not work. The foobar.jar was also specified as a dependency. Probably this is not as much a bug, as a lack of documentation. Would be great if you could help me out.

michaelpisula commented 11 years ago

I found a solution, if I put my dependencies in the buildscript part, it will work =) Example:

buildscript {
    repositories {
        ...
    }
    dependencies {
        classpath 'foo.bar:foobar:1.0'
    }
}
jmeterRun.configure {
    jmeterPluginJars = ["foobar-1.0.jar"]
}