<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>io.edifice</groupId>
    <artifactId>app-parent</artifactId>
    <version>1.2.1</version>
  </parent>
  <groupId>net.atos</groupId>
  <artifactId>collaborative-editor</artifactId>
  <version>3.4.6</version>
  <scm>
    <connection>scm:git:https://github.com/OPEN-ENT-NG/collaborative-editor.git</connection>
    <developerConnection>scm:git:https://github.com/OPEN-ENT-NG/collaborative-editor.git</developerConnection>
    <url>https://github.com/OPEN-ENT-NG/collaborative-editor</url>
  </scm>
  <repositories>
    <repository>
      <id>ode</id>
      <name>ODE Repository</name>
      <url>https://maven.opendigitaleducation.com/nexus/content/groups/public</url>
    </repository>
  </repositories>
  <properties>
    <entCoreVersion>6.16.7</entCoreVersion>
    <entCoreLibsVersion>6.16.3</entCoreLibsVersion>
    <gatlingHighchartsVersion>2.3.1</gatlingHighchartsVersion>
    <vertxCronTimerVersion>3.0.0</vertxCronTimerVersion>
    <jsonSimpleVersion>1.1.1</jsonSimpleVersion>
    <modMongoVersion>4.2.0</modMongoVersion>
    <modJsonSchemaValidatorVersion>2.2.0</modJsonSchemaValidatorVersion>
  </properties>
  <dependencies>
    <dependency>
      <groupId>io.vertx</groupId>
      <artifactId>vertx-core</artifactId>
      <version>${vertxVersion}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.entcore</groupId>
      <artifactId>common</artifactId>
      <version>${entCoreLibsVersion}</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>fr.wseduc</groupId>
      <artifactId>vertx-cron-timer</artifactId>
      <version>${vertxCronTimerVersion}</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.googlecode.json-simple</groupId>
      <artifactId>json-simple</artifactId>
      <version>${jsonSimpleVersion}</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.entcore</groupId>
      <artifactId>tests</artifactId>
      <version>${entCoreVersion}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.entcore</groupId>
      <artifactId>session</artifactId>
      <version>${entCoreLibsVersion}</version>
      <scope>runtime</scope>
      <classifier>fat</classifier>
    </dependency>
    <dependency>
      <groupId>org.entcore</groupId>
      <artifactId>workspace</artifactId>
      <version>${entCoreVersion}</version>
      <scope>runtime</scope>
      <classifier>fat</classifier>
    </dependency>
    <dependency>
      <groupId>io.vertx</groupId>
      <artifactId>mod-mongo-persistor</artifactId>
      <version>${modMongoVersion}</version>
      <scope>runtime</scope>
      <classifier>fat</classifier>
    </dependency>
    <dependency>
      <groupId>com.opendigitaleducation</groupId>
      <artifactId>mod-json-schema-validator</artifactId>
      <version>${modJsonSchemaValidatorVersion}</version>
      <scope>runtime</scope>
      <classifier>fat</classifier>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.2.2</version>
        <executions>
          <execution>
            <id>default-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <archive>
                <manifestEntries>
                  <Build-Time>${maven.build.timestamp}</Build-Time>
                  <Main-Verticle>service:mod</Main-Verticle>
                  <SCM-Commit-Id>${buildNumber}</SCM-Commit-Id>
                  <SCM-Branch>${scmBranch}</SCM-Branch>
                  <Implementation-Title>${project.name}</Implementation-Title>
                  <Implementation-Version>${project.version}</Implementation-Version>
                  <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
                </manifestEntries>
              </archive>
            </configuration>
          </execution>
          <execution>
            <id>create-test-jar</id>
            <phase>package</phase>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
          <execution>
            <id>create-deployment-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>deployment</classifier>
              <includes>
                <include>collaborativeeditor/**</include>
              </includes>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
