<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->

<module xmlns="urn:jboss:module:1.9" name="org.elasticsearch.client.rest-client">

    <properties>
        <!-- Direct access to the Elasticsearch client is allowed in WildFly,
             though it may not be supported by product vendors
             (because its APIs could change without prior notice). -->
        <property name="jboss.api" value="public"/>
    </properties>

    <resources>
        <artifact name="${org.elasticsearch.client:elasticsearch-rest-client}"/>
        <artifact name="${org.elasticsearch.client:elasticsearch-rest-client-sniffer}"/>
    </resources>

    <dependencies>
        <module name="org.apache.commons.logging"/>
        <module name="org.apache.commons.codec" export="true"/>
        <module name="org.apache.httpcomponents" export="true" services="export"/>
        <module name="com.fasterxml.jackson.core.jackson-core"/>
    </dependencies>
</module>
