<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
contact@meeds.io
This program 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 3 of the License, or (at your option) any later version.
This program 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 program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>addons-parent-pom</artifactId>
    <groupId>io.meeds.addons</groupId>
    <version>20-M02</version>
    <relativePath />
  </parent>
  <groupId>io.meeds.wallet</groupId>
  <artifactId>wallet</artifactId>
  <version>7.2.0-exo-M26</version>
  <packaging>pom</packaging>
  <name>Meeds:: Add-on:: Wallet Add-on</name>
  <description>Meeds Wallet Add-on</description>
  <modules>
    <module>wallet-api</module>
    <module>wallet-services</module>
    <module>wallet-reward-services</module>
    <module>wallet-webapps</module>
    <module>wallet-packaging</module>
  </modules>
  <scm>
    <connection>scm:git:git://github.com/meeds-io/wallet.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/meeds-io/wallet.git</developerConnection>
    <url>https://github.com/meeds-io/wallet</url>
    <tag>7.2.0-exo-M26</tag>
  </scm>
  <properties>
    <!-- 3rd party libraries versions -->
    <io.meeds.social.version>7.2.0-exo-M26</io.meeds.social.version>
    <org.exoplatform.wallet.ert-contract.version>1.3.0</org.exoplatform.wallet.ert-contract.version>
    <io.meeds.platform-ui.version>7.2.0-exo-M26</io.meeds.platform-ui.version>
    <addon.meeds.analytics.version>7.2.0-exo-M26</addon.meeds.analytics.version>
    <addon.meeds.gamification.version>7.2.0-exo-M26</addon.meeds.gamification.version>
      <!-- Sonar properties -->
    <sonar.organization>meeds-io</sonar.organization>
  </properties>
  <dependencyManagement>
    <dependencies>
      <!-- Import versions from platform project -->
      <dependency>
        <groupId>io.meeds.social</groupId>
        <artifactId>social</artifactId>
        <version>${io.meeds.social.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>

      <dependency>
        <groupId>io.meeds.platform-ui</groupId>
        <artifactId>platform-ui</artifactId>
        <version>${io.meeds.platform-ui.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>io.meeds.gamification</groupId>
        <artifactId>gamification</artifactId>
        <version>${addon.meeds.gamification.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>io.meeds.analytics</groupId>
        <artifactId>analytics-parent</artifactId>
        <version>${addon.meeds.analytics.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>

      <!-- Current project artifacts -->
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>wallet-webapps</artifactId>
        <version>${project.version}</version>
        <type>war</type>
      </dependency>

      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>wallet-api</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>wallet-services</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>wallet-services</artifactId>
        <version>${project.version}</version>
        <type>test-jar</type>
      </dependency>

      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>wallet-reward-services</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>wallet-packaging</artifactId>
        <version>${project.version}</version>
        <type>zip</type>
      </dependency>

      <dependency>
        <groupId>org.exoplatform.wallet</groupId>
        <artifactId>ert-contract</artifactId>
        <version>${org.exoplatform.wallet.ert-contract.version}</version>
      </dependency>

    </dependencies>
  </dependencyManagement>
  
   <!-- This profile is used to allow github action to build branches. The github action is used for sonar analysis -->
   <profiles>
      <profile>
         <id>project-repositories</id>
         <activation>
            <property>
               <name>!skip-project-repositories</name>
            </property>
         </activation>
         <repositories>
            <repository>
               <snapshots>
                  <enabled>true</enabled>
               </snapshots>
               <id>repository.exoplatform.org</id>
               <url>https://repository.exoplatform.org/public</url>
            </repository>
         </repositories>
         <pluginRepositories>
            <pluginRepository>
               <snapshots>
                  <enabled>true</enabled>
               </snapshots>
               <id>repository.exoplatform.org</id>
               <url>https://repository.exoplatform.org/public</url>
            </pluginRepository>
         </pluginRepositories>
      </profile>
   </profiles>
</project>
