<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>
	<groupId>org.clazzes.util</groupId>
	<artifactId>clazzes-parent</artifactId>
	<version>4.3.0</version>
  </parent>
  <groupId>org.clazzes.sketch</groupId>
  <artifactId>sketch-main</artifactId>
  <version>2.2.0</version>
  <packaging>pom</packaging>
  <name>parent project for clazzes.org sketch framework</name>
  <url>http://www.clazzes.org/</url>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>

  <organization>
    <name>Clazzes.org</name>
    <url>http://www.clazzes.org</url>
  </organization>

  <distributionManagement>
    <repository>
      <id>org.clazzes-sketch-dist</id>
      <name>clazzes.org repository</name>
      <url>scpexe://sketch@maven.clazzes.org/var/www/htdocs/maven.clazzes.org</url>
    </repository>
    <snapshotRepository>
        <id>org.clazzes.snapshots-sketch-dist</id>
        <name>clazzes.org snapshot repository</name>
        <url>scpexe://sketch@maven.clazzes.org/var/www/htdocs/maven-snapshots.clazzes.org</url>
    </snapshotRepository>
  </distributionManagement>

  <modules>
  	<module>./serializable-entities</module>
  	<module>./richtext</module>
  	<module>./shapes</module>
  	<module>./scientific-shapes</module>
  </modules>

  <scm>
    <connection>scm:git:git@gitlab.intra.iteg.at:tis/tisgraph/sketch/sketch-main.git</connection>
    <developerConnection>scm:git:git@gitlab.intra.iteg.at:tis/tisgraph/sketch/sketch-main.git</developerConnection>
    <tag>sketch-main-2.2.0</tag>
  </scm>

  <issueManagement>
    <system>jira</system>
    <url>https://jira.clazzes.org/browse/SKETCH</url>
  </issueManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <releaseProfiles>env-prod</releaseProfiles>
          <useReleaseProfile>false</useReleaseProfile>
          <preparationGoals>clean verify exec:exec</preparationGoals>
          <goals>deploy</goals>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <configuration>
          <executable>/usr/bin/pba-mvn2pkg-raiseversion-prod</executable>
          <environmentVariables>
            <PBA_MVN2PKG_PKGDIR>${project.basedir}/sketch-pkg</PBA_MVN2PKG_PKGDIR>
          </environmentVariables>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.clazzes.util</groupId>
      <artifactId>clazzes-util</artifactId>
      <version>2.0.2</version>
    </dependency>
    <dependency>
      <groupId>org.clazzes.util</groupId>
      <artifactId>aop-util</artifactId>
      <version>2.0.2</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>com.google.code.gson</groupId>
      <artifactId>gson</artifactId>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
    	<groupId>org.slf4j</groupId>
    	<artifactId>slf4j-simple</artifactId>
    	<scope>test</scope>
    </dependency>
  </dependencies>

  <profiles>
    <profile>
      <!-- Tests may fail due to missing fonts in gitlab and the results need to -->
      <id>gitlab-ci</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <argLine>-Dorg.slf4j.simpleLogger.log.org.clazzes.sketch=info</argLine>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>


  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.clazzes.util</groupId>
        <artifactId>http-util</artifactId>
        <version>3.0.0</version>
      </dependency>
      <dependency>
        <groupId>org.clazzes.svc</groupId>
        <artifactId>svc-api</artifactId>
        <version>1.3.0</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <repositories>
   <repository>
      <id>org.clazzes</id>
      <name>Clazzes.org repository.</name>
      <url>https://maven.clazzes.org</url>
    </repository>
    <repository>
      <id>org.clazzes-snapshots</id>
      <name>Clazzes.org snapshot repository.</name>
      <url>https://maven-snapshots.clazzes.org</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

</project>
