# How to exlude \`org.elasticsearch.test.framework\` dependency from Gradle \`esplugin\`?

**URL:** <https://discuss.elastic.co/t/how-to-exlude-org-elasticsearch-test-framework-dependency-from-gradle-esplugin/270526>\
**Category:** Elasticsearch\
**Created:** [April 19, 2021, 4:29am UTC](https://discuss.elastic.co/t/how-to-exlude-org-elasticsearch-test-framework-dependency-from-gradle-esplugin/270526 "2021-04-19T04:29:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BruceCL0407](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brucecl0407/32/86867_2.png) [@BruceCL0407](https://discuss.elastic.co/u/BruceCL0407)\
**Post date:** [April 19, 2021, 4:29am UTC](https://discuss.elastic.co/t/how-to-exlude-org-elasticsearch-test-framework-dependency-from-gradle-esplugin/270526/1 "2021-04-19T04:29:40Z")

</div>

Gradle `esplugin` introducing the dependency `org.elasticsearch.test.framework` requires `RandomizedRunner` to run tests(both Unit Tests and Integration Tests).  
In comparison, Maven doesn't introduce `org.elasticsearch.test.framework` . Therefore, it doesn't required requires `RandomizedRunner` to run tests. I've managed to migrate the build system of my ES plugin from Maven to Gradle, but I don't want to specify `RandomizedRunner` in my tests. I suppose that the tests will run without `RandomizedRunner` if `org.elasticsearch.test.framework` can be excluded from the classpath. Anyone knows an approach to exclude `org.elasticsearch.test.framework` from Gradle `esplugin` ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 17, 2021, 4:30am UTC](https://discuss.elastic.co/t/how-to-exlude-org-elasticsearch-test-framework-dependency-from-gradle-esplugin/270526/2 "2021-05-17T04:30:28Z")

</div>

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