<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->
<module name="org.jboss.as.server" xmlns="urn:jboss:module:1.9">
    <properties>
        <property name="jboss.api" value="private"/>
        <property name="jboss.require-java-version" value="11"/>
    </properties>

    <main-class name="org.jboss.as.server.DomainServerMain"/>

    <resources>
        <resource-root path="wildfly-server-28.0.1.Final.jar"/>
    </resources>

    <dependencies>
        <!-- for java.beans -->
        <module name="java.desktop"/>
        <module name="java.instrument"/>
        <module name="java.logging"/>
        <module name="java.management"/>
        <module name="java.naming"/>
        <module name="java.security.sasl"/>
        <module name="java.xml"/>
        <!-- Workaround for ELY-1561 -->
        <module name="jdk.security.auth"/>

        <module name="io.undertow.core"/>
        <module name="io.smallrye.jandex"/>
        <module name="org.eclipse.jgit" optional="true"/>
        <module name="org.jboss.as.controller"/>
        <module name="org.jboss.as.deployment-repository"/>
        <module name="org.jboss.as.domain-http-interface"/>
        <module name="org.jboss.as.domain-management"/>
        <module name="org.jboss.as.jmx" services="import"/>
        <module name="org.jboss.as.network"/>
        <module name="org.jboss.as.patching" optional="true" services="import"/>
        <module name="org.jboss.as.platform-mbean"/>
        <module name="org.jboss.as.process-controller"/>
        <module name="org.jboss.as.protocol">
            <imports>
                <include path="**"/>
            </imports> 
        </module>
        <module name="org.jboss.as.remoting"/>
        <module name="org.jboss.as.version"/>
        <module name="org.jboss.classfilewriter"/>
        <!--this needs to remain here until common-beans is fixed to use passed classloader -->
        <module name="org.jboss.common-beans" services="export" optional="true"/>
        <module name="org.jboss.dmr"/>
        <module name="org.jboss.invocation"/>
        <module name="org.jboss.logging"/>
        <module name="org.jboss.logmanager" services="import"/>
        <module name="org.jboss.marshalling"/>
        <module name="org.jboss.marshalling.river" services="import"/>
        <module name="org.jboss.modules"/>
        <module name="org.jboss.msc" export="true"/>
        <module name="org.jboss.remoting"/>
        <module name="org.jboss.staxmapper"/>
        <module name="org.jboss.stdio"/>
        <module name="org.jboss.threads"/>
        <module name="org.jboss.vfs" services="import"/>
        <module name="org.wildfly.common"/>
        <!-- Allow javax->jakarta deployment transformation if this module is provided -->
        <module name="org.wildfly.deployment.transformation" optional="true" services="import"/>
        <module name="org.wildfly.embedded"/>
        <module name="org.wildfly.extension.core-management-client"/>
        <module name="org.wildfly.installation-manager" services="import"/>
        <module name="org.wildfly.security.elytron-private" services="import"/>
        <module name="org.wildfly.service"/>
    </dependencies>
</module>
