<?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.jboss.as.jpa">

    <properties>
        <property name="jboss.api" value="private"/>
    </properties>

    <exports>
        <exclude path="org/jboss/as/jpa/messages"/>
    </exports>

    <resources>
        <artifact name="${org.wildfly:wildfly-jpa}"/>
    </resources>

    <dependencies>
        <module name="java.instrument"/>
        <module name="java.sql"/>
        <module name="jakarta.ejb.api"/>
        <module name="jakarta.enterprise.api"/>
        <module name="jakarta.persistence.api"/>
        <module name="jakarta.transaction.api"/>
        <module name="jakarta.validation.api"/>
        <module name="org.hibernate.validator" services="import"/>
        <module name="org.infinispan.core"/>
        <!-- Only used if capability org.wildfly.bean-validation is available -->
        <module name="org.wildfly.extension.bean-validation" optional="true"/>
        <module name="org.jboss.as.controller"/>
        <module name="org.jboss.as.ee"/>
        <!-- optional because guarded by ejb3 capability -->
        <module name="org.jboss.as.ejb3" optional="true"/>
        <module name="org.jboss.as.jpa.spi"/>
        <module name="org.jboss.as.naming"/>
        <module name="org.wildfly.security.elytron-private"/>
        <module name="org.jboss.as.server"/>
        <module name="org.jboss.as.transactions"/>
        <module name="org.jboss.jboss-transaction-spi"/>
        <module name="org.jboss.invocation"/>
        <module name="io.smallrye.jandex"/>
        <module name="org.jboss.logging"/>
        <module name="org.jboss.modules"/>
        <module name="org.jboss.msc"/>
        <module name="org.jboss.staxmapper"/>
        <module name="org.jboss.metadata.common"/>
        <module name="org.jboss.metadata.ear"/>
        <module name="org.jboss.vfs"/>
        <module name="org.jboss.weld.core"/>
        <!-- Only used if capability org.wildfly.weld is available -->
        <module name="org.jboss.as.weld.common" optional="true"/>
        <module name="org.wildfly.clustering.infinispan.embedded.api"/>
        <module name="org.wildfly.clustering.infinispan.embedded.service"/>
        <module name="org.wildfly.transaction.client"/>
        <module name="org.wildfly.common"/>

        <module name="java.xml"/>
        <module name="jakarta.xml.bind.api"/>
    </dependencies>
</module>
