<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>services-parent</artifactId>
    <groupId>com.guicedee.services</groupId>
    <version>1.2.0.3-jre17-rc1</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>openpdf</artifactId>
  <name>OpenPDF</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm</artifactId>
            <version>${maven.asm.version}</version>
          </dependency>
        </dependencies>
        <configuration>
          <artifactSet>
            <includes>
              <include>com.github.librepdf</include>
              <include>com.github.albfernandez</include>
            </includes>
          </artifactSet>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>META-INF/*.SF</exclude>
                <exclude>META-INF/*.DSA</exclude>
                <exclude>META-INF/*.RSA</exclude>
                <exclude>META-INF/versions/*</exclude>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.moditect</groupId>
        <artifactId>moditect-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>jdk9</id>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>com.guicedee</groupId>
            <artifactId>standalone-bom</artifactId>
            <version>1.2.0.3-jre17-rc1</version>
            <type>pom</type>
            <scope>import</scope>
          </dependency>
        </dependencies>
      </dependencyManagement>
    </profile>
    <profile>
      <id>jdk8</id>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>com.guicedee</groupId>
            <artifactId>standalone-bom</artifactId>
            <version>${guicedee.version}</version>
            <type>pom</type>
            <scope>import</scope>
          </dependency>
        </dependencies>
      </dependencyManagement>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>com.guicedee.services</groupId>
      <artifactId>bouncycastle</artifactId>
      <version>1.2.0.3-jre17-rc1</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>com.guicedee.services</groupId>
      <artifactId>jakarta.annotation-api</artifactId>
      <version>1.2.0.3-jre17-rc1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.guicedee.services</groupId>
      <artifactId>org.apache.fop</artifactId>
      <version>1.2.0.3-jre17-rc1</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
</project>
