apply plugin: 'elasticsearch.build'

dependencies {
  api project(':x-pack:plugin:core')
  api project(':server')
  api project(':distribution:tools:cli-launcher')
  testImplementation project(':test:framework')
}

tasks.named("forbiddenPatterns").configure {
  exclude '**/*.key'
}

tasks.named("dependencyLicenses").configure { enabled = false }

tasks.register("buildZip", Zip) {
  dependsOn "jar"
  String parentDir = "license-tools-${project.version}"
  into(parentDir + '/lib') {
    from jar
    from configurations.runtimeClasspath
  }
  into(parentDir + '/bin') {
    from 'bin'
  }
}

tasks.named("assemble").configure { dependsOn("buildZip") }
