<!--
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  ~ and other contributors as indicated by the @author tags.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<jboss-deployment-structure>
    <deployment>
        <dependencies>
            <module name="org.keycloak.keycloak-common" services="import"/>
            <module name="org.keycloak.keycloak-core" services="import"/>
            <module name="org.keycloak.keycloak-themes" services="import"/>
            <module name="org.keycloak.keycloak-js-adapter" services="import"/>
            <module name="org.keycloak.keycloak-kerberos-federation" services="import"/>
            <module name="org.keycloak.keycloak-ldap-federation" services="import"/>
            <module name="org.keycloak.keycloak-server-spi" services="import"/>
            <module name="org.keycloak.keycloak-model-jpa" services="import" meta-inf="import"/>
            <!--<module name="org.keycloak.keycloak-model-mongo" services="import"/>-->
            <module name="org.keycloak.keycloak-model-infinispan" services="import"/>
            <module name="org.keycloak.keycloak-services" export="true" services="import"/>
            <module name="org.hibernate" services="import"/>
            <module name="org.bouncycastle"/>

            <module name="org.jboss.resteasy.resteasy-multipart-provider" services="import"/>
            <module name="org.jboss.resteasy.resteasy-jaxrs"/>

            <module name="org.jboss.msc"/>

            <!-- suppress unsupported dependency 'org.infinispan:main' warning -->
            <module name="org.keycloak.keycloak-server-subsystem.infinispan"/>
        </dependencies>
        <exclusions>
            <!-- Exclude keycloak modules -->
            <module name="org.keycloak.keycloak-common" />
            <module name="org.keycloak.keycloak-core" />
        </exclusions>
        <exclude-subsystems>
            <subsystem name="webservices"/>
            <subsystem name="weld"/>
        </exclude-subsystems>
    </deployment>
</jboss-deployment-structure>
