title: Setting up a basic plugin with gradle
body: <p>I'm trying to setup a basic elasticsearch plugin with gradle that follows <a href="https://github.com/elastic/elasticsearch/tree/master/plugins/examples/script-expert-scoring" rel="nofollow noreferrer">this</a> example. I realized the build.gradle file in the repo is not sufficient (for some reason) so this is my current <code>build.gradle</code> file</p>
  
  <pre><code> plugins {
      id 'java'
  }
  
  group 'test'
  version '1.0-SNAPSHOT'
  
  sourceCompatibility = 1.8
  
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      classpath "org.elasticsearch.gradle:build-tools:6.5.4"
      testCompile group: 'junit', name: 'junit', version: '4.12'
  }
  
  apply plugin: 'elasticsearch.esplugin'
  
  esplugin {
      name 'script-expert-scoring'
      description 'An example script engine to use low level Lucene internals for expert scoring'
      classname 'org.elasticsearch.example.expertscript.ExpertScriptPlugin'
      licenseFile rootProject.file('licenses/APACHE-LICENSE-2.0.txt')
      noticeFile rootProject.file('NOTICE.txt')
  }
  
  unitTest.enabled = false
  </code></pre>
  
  <p>I added the classpath dependency myself because I realized I probably need it. But now I'm getting an error saying </p>
  
  <blockquote>
    <p>cannot find method classpath() for arguments [org.elasticsearch.gradle:build-tools:6.5.4]</p>
  </blockquote>
  
  <p>Am I missing something or is this completely wrong?</p>