<!--
  ~ 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-common">
            <maven-resource group="org.keycloak" artifact="keycloak-common"/>
        </module-def>

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

        <module-def name="org.bouncycastle">
            <maven-resource group="org.bouncycastle" artifact="bcprov-jdk15on"/>
            <maven-resource group="org.bouncycastle" artifact="bcpkix-jdk15on"/>
        </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-services">
            <maven-resource group="org.keycloak" artifact="keycloak-services"/>
        </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-http-client">
            <maven-resource group="org.keycloak" artifact="keycloak-connections-http-client"/>
        </module-def>

        <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-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-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-social-linkedin">
    	      <maven-resource group="org.keycloak" artifact="keycloak-social-linkedin"/>
    	  </module-def>

      	<module-def name="org.keycloak.keycloak-social-stackoverflow">
    	      <maven-resource group="org.keycloak" artifact="keycloak-social-stackoverflow"/>
    	  </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-saml-core">
            <maven-resource group="org.keycloak" artifact="keycloak-saml-core"/>
        </module-def>
        <module-def name="org.keycloak.keycloak-saml-protocol">
            <maven-resource group="org.keycloak" artifact="keycloak-saml-protocol"/>
        </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-connections-mongo-update">
            <maven-resource group="org.keycloak" artifact="keycloak-connections-mongo-update"/>
        </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>

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

        <!-- subsystems -->

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

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

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

        <module-def name="org.keycloak.keycloak-wildfly-extensions">
            <maven-resource group="org.keycloak" artifact="keycloak-wildfly-extensions"/>
        </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>
