<!--
  ~ 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.
  -->

<project name="module-repository" basedir="." default="all">

    <import file="lib.xml"/>

    <property name="output.dir" value="target"/>

    <target name="all">
        <antcall target="modules">
            <param name="mavenized.modules" value="false"/>
            <param name="output.dir" value="target"/>
        </antcall>
    </target>


    <target name="modules">

        <!-- server min dependencies -->

        <module-def name="org.keycloak.keycloak-core">
            <maven-resource group="org.keycloak" artifact="keycloak-core"/>
        </module-def>

        <module-def name="net.iharder.base64">
            <maven-resource group="net.iharder" artifact="base64"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-broker-core">
            <maven-resource group="org.keycloak" artifact="keycloak-broker-core"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-broker-oidc">
            <maven-resource group="org.keycloak" artifact="keycloak-broker-oidc"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-broker-saml">
            <maven-resource group="org.keycloak" artifact="keycloak-broker-saml"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-core-jaxrs">
            <maven-resource group="org.keycloak" artifact="keycloak-core-jaxrs"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-services">
            <maven-resource group="org.keycloak" artifact="keycloak-services"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-wildfly-extensions">
            <maven-resource group="org.keycloak" artifact="keycloak-wildfly-extensions"/>
        </module-def>

        <module-def name="com.google.zxing.core">
            <maven-resource group="com.google.zxing" artifact="core"/>
        </module-def>

        <module-def name="com.google.zxing.javase">
            <maven-resource group="com.google.zxing" artifact="javase"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-model-api">
            <maven-resource group="org.keycloak" artifact="keycloak-model-api"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-invalidation-cache-model">
            <maven-resource group="org.keycloak" artifact="keycloak-invalidation-cache-model"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-events-api">
            <maven-resource group="org.keycloak" artifact="keycloak-events-api"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-events-jpa">
            <maven-resource group="org.keycloak" artifact="keycloak-events-jpa"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-events-jboss-logging">
            <maven-resource group="org.keycloak" artifact="keycloak-events-jboss-logging"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-js-adapter">
            <maven-resource group="org.keycloak" artifact="keycloak-js-adapter"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-social-core">
            <maven-resource group="org.keycloak" artifact="keycloak-social-core"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-forms-common-freemarker">
            <maven-resource group="org.keycloak" artifact="keycloak-forms-common-freemarker"/>
        </module-def>

        <module-def name="org.freemarker">
            <maven-resource group="org.freemarker" artifact="freemarker"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-forms-common-themes">
            <maven-resource group="org.keycloak" artifact="keycloak-forms-common-themes"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-account-api">
            <maven-resource group="org.keycloak" artifact="keycloak-account-api"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-account-freemarker">
            <maven-resource group="org.keycloak" artifact="keycloak-account-freemarker"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-email-api">
            <maven-resource group="org.keycloak" artifact="keycloak-email-api"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-email-freemarker">
            <maven-resource group="org.keycloak" artifact="keycloak-email-freemarker"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-login-api">
            <maven-resource group="org.keycloak" artifact="keycloak-login-api"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-login-freemarker">
            <maven-resource group="org.keycloak" artifact="keycloak-login-freemarker"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-timer-api">
            <maven-resource group="org.keycloak" artifact="keycloak-timer-api"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-timer-basic">
            <maven-resource group="org.keycloak" artifact="keycloak-timer-basic"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-export-import-api">
            <maven-resource group="org.keycloak" artifact="keycloak-export-import-api"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-export-import-dir">
            <maven-resource group="org.keycloak" artifact="keycloak-export-import-dir"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-export-import-single-file">
            <maven-resource group="org.keycloak" artifact="keycloak-export-import-single-file"/>
        </module-def>

        <!-- server all dependencies -->

        <module-def name="org.keycloak.keycloak-connections-jpa">
            <maven-resource group="org.keycloak" artifact="keycloak-connections-jpa"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-connections-jpa-liquibase">
            <maven-resource group="org.keycloak" artifact="keycloak-connections-jpa-liquibase"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-connections-file">
            <maven-resource group="org.keycloak" artifact="keycloak-connections-file"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-connections-infinispan">
            <maven-resource group="org.keycloak" artifact="keycloak-connections-infinispan"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-model-jpa">
            <maven-resource group="org.keycloak" artifact="keycloak-model-jpa"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-model-sessions-mem">
            <maven-resource group="org.keycloak" artifact="keycloak-model-sessions-mem"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-model-sessions-jpa">
            <maven-resource group="org.keycloak" artifact="keycloak-model-sessions-jpa"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-model-sessions-mongo">
            <maven-resource group="org.keycloak" artifact="keycloak-model-sessions-mongo"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-model-sessions-infinispan">
            <maven-resource group="org.keycloak" artifact="keycloak-model-sessions-infinispan"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-invalidation-cache-infinispan">
            <maven-resource group="org.keycloak" artifact="keycloak-invalidation-cache-infinispan"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-events-jpa">
            <maven-resource group="org.keycloak" artifact="keycloak-events-jpa"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-events-jboss-logging">
            <maven-resource group="org.keycloak" artifact="keycloak-events-jboss-logging"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-events-email">
            <maven-resource group="org.keycloak" artifact="keycloak-events-email"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-social-github">
            <maven-resource group="org.keycloak" artifact="keycloak-social-github"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-social-google">
            <maven-resource group="org.keycloak" artifact="keycloak-social-google"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-social-twitter">
            <maven-resource group="org.keycloak" artifact="keycloak-social-twitter"/>
        </module-def>

        <module-def name="org.twitter4j">
            <maven-resource group="org.twitter4j" artifact="twitter4j-core"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-social-facebook">
            <maven-resource group="org.keycloak" artifact="keycloak-social-facebook"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-kerberos-federation">
            <maven-resource group="org.keycloak" artifact="keycloak-kerberos-federation"/>
        </module-def>

        <module-def name="sun.jdk.jgss"></module-def>

        <module-def name="org.keycloak.keycloak-ldap-federation">
            <maven-resource group="org.keycloak" artifact="keycloak-ldap-federation"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-picketlink-api">
            <maven-resource group="org.keycloak" artifact="keycloak-picketlink-api"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-picketlink-ldap">
            <maven-resource group="org.keycloak" artifact="keycloak-picketlink-ldap"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-saml-protocol">
            <maven-resource group="org.keycloak" artifact="keycloak-saml-protocol"/>
        </module-def>

        <!-- file -->
        <module-def name="org.keycloak.keycloak-model-file">
            <maven-resource group="org.keycloak" artifact="keycloak-model-file"/>
        </module-def>

        <!-- mongo -->

        <module-def name="org.keycloak.keycloak-connections-mongo">
            <maven-resource group="org.keycloak" artifact="keycloak-connections-mongo"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-model-mongo">
            <maven-resource group="org.keycloak" artifact="keycloak-model-mongo"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-events-mongo">
            <maven-resource group="org.keycloak" artifact="keycloak-events-mongo"/>
        </module-def>

        <module-def name="org.mongodb.mongo-java-driver">
            <maven-resource group="org.mongodb" artifact="mongo-java-driver"/>
        </module-def>

        <!-- export/import -->

        <module-def name="org.keycloak.keycloak-export-import-zip">
            <maven-resource group="org.keycloak" artifact="keycloak-export-import-zip"/>
        </module-def>
        <module-def name="de.idyl.winzipaes">
            <maven-resource group="de.idyl" artifact="winzipaes"/>
        </module-def>

        <module-def name="org.liquibase">
            <maven-resource group="org.liquibase" artifact="liquibase-core"/>
        </module-def>






        <!-- subsystems -->

        <module-def name="org.keycloak.keycloak-server"></module-def>

        <module-def name="org.jboss.aesh">
            <maven-resource group="org.jboss.aesh" artifact="aesh"/>
        </module-def>

        <module-def name="org.jboss.as.cli">
            <maven-resource group="org.wildfly.core" artifact="wildfly-cli"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-adapter-core">
            <maven-resource group="org.keycloak" artifact="keycloak-adapter-core"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-jboss-adapter-core">
            <maven-resource group="org.keycloak" artifact="keycloak-jboss-adapter-core"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-as7-adapter">
            <maven-resource group="org.keycloak" artifact="keycloak-as7-adapter"/>
            <maven-resource group="org.keycloak" artifact="keycloak-tomcat-core-adapter"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-undertow-adapter">
            <maven-resource group="org.keycloak" artifact="keycloak-undertow-adapter"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-wildfly-adapter">
            <maven-resource group="org.keycloak" artifact="keycloak-wildfly-adapter"/>
        </module-def>

        <module-def name="org.keycloak.keycloak-subsystem">
            <maven-resource group="org.keycloak" artifact="keycloak-subsystem"/>
        </module-def>
        <module-def name="org.keycloak.keycloak-as7-subsystem">
            <maven-resource group="org.keycloak" artifact="keycloak-as7-subsystem"/>
        </module-def>
        <module-def name="org.picketlink">
        </module-def>
        <module-def name="org.picketlink.common">
            <maven-resource group="org.picketlink" artifact="picketlink-common"/>
        </module-def>
        <module-def name="org.picketlink.config">
            <maven-resource group="org.picketlink" artifact="picketlink-config"/>
        </module-def>
        <module-def name="org.picketlink.core">
            <maven-resource group="org.picketlink" artifact="picketlink-impl"/>
        </module-def>
        <module-def name="org.picketlink.core.api">
            <maven-resource group="org.picketlink" artifact="picketlink-api"/>
        </module-def>
        <module-def name="org.picketlink.federation">
            <maven-resource group="org.picketlink" artifact="picketlink-federation"/>
        </module-def>
        <module-def name="org.picketlink.federation.bindings">
            <maven-resource group="org.picketlink" artifact="picketlink-wildfly-common"/>
            <maven-resource group="org.picketlink" artifact="picketlink-tomcat-common"/>
            <maven-resource group="org.picketlink" artifact="picketlink-tomcat5-single"/>
            <maven-resource group="org.picketlink" artifact="picketlink-jbas-common"/>
            <maven-resource group="org.picketlink" artifact="picketlink-jbas7-single"/>
        </module-def>
        <module-def name="org.picketlink.idm">
            <maven-resource group="org.picketlink" artifact="picketlink-idm-impl"/>
        </module-def>
        <module-def name="org.picketlink.idm.api">
            <maven-resource group="org.picketlink" artifact="picketlink-idm-api"/>
        </module-def>
        <module-def name="org.picketlink.idm.schema">
            <maven-resource group="org.picketlink" artifact="picketlink-idm-simple-schema"/>
        </module-def>
    </target>

    <target name="clean-target">
        <delete dir="${output.dir}"/>
    </target>

    <target name="clean" depends="clean-target">
        <delete file="maven-ant-tasks.jar"/>
    </target>

</project>
