buildscript {
    repositories {
        mavenCentral()
        maven {
            name 'sonatype-snapshots'
            url "https://oss.sonatype.org/content/repositories/snapshots/"
        }
        jcenter()
    }
    dependencies {
        classpath "org.elasticsearch.gradle:build-tools:5.5.0"
    }
}

apply plugin: "java"
apply plugin: 'elasticsearch.esplugin'
apply plugin: "eclipse"

group = "org.elasticsearch.plugin"
version = "5.5.0"

sourceSets {
  test {
    resources {
      srcDir "test"
    }
  }
}

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

esplugin {
  name "diego-esplugin"
  description "diego-esplugin"
  classname "com.github.diegopacheco.es.plugin.SimplePlugin"
  // 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")
}

// In this section you declare the dependencies for your production and test code
// Note, the two dependencies are not really needed as the buildscript dependency gets them in already
// they are just here as an example
dependencies {
  compile     "org.elasticsearch:elasticsearch:5.5.0"
  testCompile "org.elasticsearch.test:framework:5.5.0"
}

// Set to false to not use elasticsearch checkstyle rules
checkstyleMain.enabled = false
checkstyleTest.enabled = false

// FIXME dependency license check needs to be enabled
dependencyLicenses.enabled = false

// FIXME thirdparty audit needs to be enabled
thirdPartyAudit.enabled = false

// Uncomment this to skip license header checks
licenseHeaders.enabled = false

task wrapper(type: Wrapper) {
    gradleVersion = "3.5"
}
