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

<!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2012, 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 xmlns="urn:jboss:module:1.9" name="jakarta.faces.api:${jsf-impl-name}-${jsf-version}">
    <dependencies>
        <module name="java.desktop"/>
        <module name="java.logging"/>
        <module name="java.sql"/>
        <module name="java.xml"/>
        <module name="jakarta.enterprise.api" export="true"/>
        <module name="jakarta.servlet.api" export="true"/>
        <module name="jakarta.servlet.jsp.api" export="true"/>
        <module name="jakarta.servlet.jstl.api" export="true"/>
        <module name="jakarta.validation.api" export="true"/>
        <module name="org.glassfish.jakarta.el" export="true"/>
        <module name="jakarta.faces.impl:${jsf-impl-name}-${jsf-version}">
            <exports>
                <include-set>
                    <path name="jakarta/faces"/>
                    <path name="jakarta/faces/annotation"/>
                    <path name="jakarta/faces/application"/>
                    <path name="jakarta/faces/component"/>
                    <path name="jakarta/faces/component/behavior"/>
                    <path name="jakarta/faces/component/html"/>
                    <path name="jakarta/faces/component/search"/>
                    <path name="jakarta/faces/component/visit"/>
                    <path name="jakarta/faces/context"/>
                    <path name="jakarta/faces/convert"/>
                    <path name="jakarta/faces/el"/>
                    <path name="jakarta/faces/event"/>
                    <path name="jakarta/faces/flow"/>
                    <path name="jakarta/faces/flow/builder"/>
                    <path name="jakarta/faces/lifecycle"/>
                    <path name="jakarta/faces/mock"/>
                    <path name="jakarta/faces/model"/>
                    <path name="jakarta/faces/push"/>
                    <path name="jakarta/faces/render"/>
                    <path name="jakarta/faces/validator"/>
                    <path name="jakarta/faces/view"/>
                    <path name="jakarta/faces/view/facelets"/>
                    <path name="jakarta/faces/webapp"/>
                </include-set>
            </exports>
        </module>
        <module name="jakarta.websocket.api"/>
        <!--TODO remove the WELD dependencies from this module, they should be in implementation module only. See comments on https://github.com/wildfly/wildfly/pull/16155 for possible causes-->
        <module name="org.jboss.weld.api"/>
        <module name="org.jboss.weld.core"/>
        <module name="org.jboss.weld.spi"/>
    </dependencies>
</module>
