# Elasticsearch.esplugin: Replace/Change/Disable integTestCluster#wait Task

**URL:** <https://discuss.elastic.co/t/elasticsearch-esplugin-replace-change-disable-integtestcluster-wait-task/115006>\
**Category:** Elasticsearch\
**Created:** [January 11, 2018, 6:06am UTC](https://discuss.elastic.co/t/elasticsearch-esplugin-replace-change-disable-integtestcluster-wait-task/115006 "2018-01-11T06:06:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 11, 2018, 8:12am UTC](https://discuss.elastic.co/t/elasticsearch-esplugin-replace-change-disable-integtestcluster-wait-task/115006/2 "2018-01-11T08:12:51Z")

</div>

For another project with gradle, I used something like:

```auto
buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        jcenter()
    }

    dependencies {
        classpath "org.elasticsearch.gradle:build-tools:6.0.0"
    }
}

apply plugin: 'java'
apply plugin: 'elasticsearch.esplugin'
apply plugin: 'idea'
apply plugin: 'maven'

// this is temporal and will be fixed in 6.0
ext.projectSubstitutions = [:]

// license of this project
licenseFile = rootProject.file('LICENSE.txt')
// copyright notices
noticeFile = rootProject.file('NOTICE.txt')

esplugin {
    // license of the plugin, may be different than the above license
    licenseFile rootProject.file('LICENSE.txt')
    // copyright notices, may be different than the above notice
    noticeFile rootProject.file('NOTICE.txt')
    name 'foo'
    description 'foo'
    classname 'fr.pilato.elasticsearch.plugin.foo.FooPlugin'
}

repositories {
    mavenLocal()
    mavenCentral()
    jcenter()
}

// In this section you declare the dependencies for your production and test code
// Elasticsearch dependency is included due to the build-tools, test-framework as well
dependencies {
    testCompile 'org.elasticsearch.client:elasticsearch-rest-high-level-client:6.0.0'
}

integTestCluster {
    setting 'foo.whatever.setting', 'bar'
}

thirdPartyAudit.excludes = [
        // classes are missing
        'javax.servlet.ServletConfig',
        'javax.servlet.ServletContext',
        'javax.servlet.ServletContextEvent',
        //... Skipped for clarity
]

artifacts {
    archives javadocJar, sourcesJar
}

```

I hope this could help. (May be)... 🙂

Note that I'm using 6.0 here.

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-esplugin-replace-change-disable-integtestcluster-wait-task/115006)._
