<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2017, Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags. See the copyright.txt file in the
  ~ distribution for a full listing of individual contributors.
  ~
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This software is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  -->
<module name="org.wildfly.transaction.client" xmlns="urn:jboss:module:1.9">

    <exports>
        <exclude path="org/wildfly/transaction/client/_private"/>
    </exports>

    <resources>
        <artifact name="org.wildfly.transaction:wildfly-transaction-client:1.1.14.Final"/>
    </resources>

    <dependencies>
        <!-- Sorted alphabetically -->
        <module name="java.naming"/>
        <module name="javax.resource.api"/>
        <module name="javax.transaction.api"/>

        <module name="org.jboss.ejb-client" services="import" optional="true"/>
        <!-- Not needed if the transaction subsystem is not present to build a JBossLocalTransactionProvider -->
        <module name="org.jboss.jboss-transaction-spi" optional="true"/>
        <!-- Not needed if the transaction subsystem is not present to build a JBossLocalTransactionProvider -->
        <module name="org.jboss.jts" optional="true"/>
        <!-- Not needed if the transaction subsystem is not present to build a JBossLocalTransactionProvider -->
        <module name="org.jboss.jts.integration" optional="true"/>
        <module name="org.wildfly.http-client.transaction" optional="true"/>
        <module name="org.jboss.logging"/>
        <module name="org.jboss.remoting"/>
        <module name="org.jboss.xnio"/>

        <module name="org.wildfly.common"/>
        <module name="org.wildfly.naming-client"/>
        <module name="org.wildfly.security.elytron"/>
    </dependencies>

    <provides>
        <service name="org.wildfly.transaction.client.spi.RemoteTransactionProvider">
            <with-class name="org.wildfly.httpclient.transaction.HttpRemoteTransactionProvider"/>
        </service>
    </provides>
</module>
