<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>3.2.2</version>
  </parent>
  <groupId>org.clazzes.sketch</groupId>
  <artifactId>pdf-main</artifactId>
  <version>1.9.4</version>
  <name>PDF backend for sketch shapes, parent project.</name>
  <packaging>pom</packaging>

  <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>https://www.clazzes.org</url>
  </organization>

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

  <properties>
    <sketch.version>1.7.4</sketch.version>
  </properties>

  <profiles>
	<profile>
	  <id>java-8-api</id>
	  <activation>
		<jdk>[9,)</jdk>
	  </activation>
	  <properties>
		<maven.compiler.release>8</maven.compiler.release>
	  </properties>
	</profile>
    <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>
              <skipTests>true</skipTests>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

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

  <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>

  <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-pdf-pkg</PBA_MVN2PKG_PKGDIR>
          </environmentVariables>
        </configuration>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <configuration>
            <doclint>all,-missing</doclint>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.apache.pdfbox</groupId>
      <artifactId>pdfbox</artifactId>
      <version>1.8.16</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</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>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.clazzes.sketch</groupId>
        <artifactId>serializable-entities</artifactId>
        <version>${sketch.version}</version>
      </dependency>
      <dependency>
        <groupId>org.clazzes.sketch</groupId>
        <artifactId>richtext</artifactId>
        <version>${sketch.version}</version>
      </dependency>
      <dependency>
        <groupId>org.clazzes.sketch</groupId>
        <artifactId>shapes</artifactId>
        <version>${sketch.version}</version>
      </dependency>
      <dependency>
        <groupId>org.clazzes.sketch</groupId>
        <artifactId>scientific-shapes</artifactId>
        <version>${sketch.version}</version>
      </dependency>
      <dependency>
        <groupId>org.clazzes.util</groupId>
        <artifactId>aop-util</artifactId>
        <version>1.9.2</version>
      </dependency>
      <dependency>
        <groupId>org.clazzes.sketch</groupId>
        <artifactId>test-sceneries</artifactId>
        <version>1.1.5</version>
        <scope>test</scope>
      </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 snapshots repository.</name>
      <url>https://maven-snapshots.clazzes.org</url>
    </repository>
  </repositories>
</project>
