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

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

<!-- Hibernate Search Elasticsearch backend: provides the ability to index into a remote Elasticsearch index -->
<module xmlns="urn:jboss:module:1.9" name="org.hibernate.search.backend.elasticsearch">

    <resources>
        <artifact name="${org.hibernate.search:hibernate-search-backend-elasticsearch}"/>
    </resources>

    <dependencies>
        <module name="org.jboss.logging"/>
        <module name="org.hibernate.search.engine" export="true"/>
        <!-- This is not exported on purpose: users wanting to use the REST client or Gson directly
             need to explicitly opt in by adding a dependency to that module -->
        <module name="org.elasticsearch.client.rest-client" />
        <module name="com.google.code.gson" />
    </dependencies>
</module>
