/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */

import org.elasticsearch.gradle.Version

evaluationDependsOn(xpackModule('core'))

apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'

esplugin {
  name = 'unsigned-long'
  description = 'Module for the unsigned long field type'
  classname ='org.elasticsearch.xpack.unsignedlong.UnsignedLongMapperPlugin'
  extendedPlugins = ['x-pack-core', 'lang-painless']
}
base {
  archivesName = 'x-pack-unsigned-long'
}

dependencies {
  compileOnly project(':modules:lang-painless:spi')
  compileOnly project(path: xpackModule('core'))
  testImplementation(testArtifact(project(xpackModule('core'))))
  yamlRestTestImplementation(testArtifact(project(xpackModule('core'))))
}

restResources {
    restApi {
        include '_common', 'bulk', 'indices', 'index', 'search', 'xpack'
    }
}
