<?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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.dromara</groupId>
  <artifactId>x-easypdf-shade-pdfbox</artifactId>
  <name>x-easypdf-shade-pdfbox</name>
  <version>3.5.8</version>
  <description>A shade library based on pdfbox</description>
  <url>https://www.x-easypdf.cn</url>
  <developers>
    <developer>
      <name>xsx</name>
      <email>xsx344646090@vip.qq.com</email>
      <url>http://www.xsx.wiki</url>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Mulan Permissive Software License，Version 2 (Mulan PSL v2)</name>
      <url>http://license.coscl.org.cn/MulanPSL2</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <connection>git@gitee.com:xsxgit/x-easypdf.git</connection>
    <developerConnection>https://gitee.com/xsxgit/x-easypdf.git</developerConnection>
    <url>https://gitee.com/xsxgit/x-easypdf</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <target>${java.version}</target>
          <source>${java.version}</source>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>3.3.1</version>
        <configuration>
          <resources>
            <resource>
              <directory>src/main/resources</directory>
              <filtering>true</filtering>
              <includes>
                <include>**/*</include>
              </includes>
            </resource>
          </resources>
          <nonFilteredFileExtensions>
            <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
            <nonFilteredFileExtension>otf</nonFilteredFileExtension>
            <nonFilteredFileExtension>ttc</nonFilteredFileExtension>
          </nonFilteredFileExtensions>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.2.0</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <phase>package</phase>
            <goals>
              <goal>javadoc</goal>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <encoding>utf8</encoding>
          <doclint>none</doclint>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.6.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>org.apache.pdfbox:pdfbox</include>
                  <include>org.apache.pdfbox:fontbox</include>
                  <include>org.apache.pdfbox:preflight</include>
                  <include>org.apache.pdfbox:xmpbox</include>
                  <include>org.apache.pdfbox:pdfbox-io</include>
                  <include>org.apache.pdfbox:pdfbox-tools</include>
                  <include>org.apache.pdfbox:pdfbox-debugger</include>
                  <include>org.apache.pdfbox:jbig2-imageio</include>
                  <include>org.dromara:x-easypdf-shade-pdfbox</include>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>org.apache.pdfbox</pattern>
                  <shadedPattern>org.dromara.pdf.shade.org.apache.pdfbox</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.fontbox</pattern>
                  <shadedPattern>org.dromara.pdf.shade.org.apache.fontbox</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.preflight</pattern>
                  <shadedPattern>org.dromara.pdf.shade.org.apache.preflight</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.xmpbox</pattern>
                  <shadedPattern>org.dromara.pdf.shade.org.apache.xmpbox</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.pdfbox.io</pattern>
                  <shadedPattern>org.dromara.pdf.shade.org.apache.pdfbox.io</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.pdfbox.tools</pattern>
                  <shadedPattern>org.dromara.pdf.shade.org.apache.pdfbox.tools</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.pdfbox.debugger</pattern>
                  <shadedPattern>org.dromara.pdf.shade.org.apache.pdfbox.debugger</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.pdfbox.jbig2</pattern>
                  <shadedPattern>org.dromara.pdf.shade.org.apache.pdfbox.jbig2</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.central</groupId>
            <artifactId>central-publishing-maven-plugin</artifactId>
            <version>0.4.0</version>
            <extensions>true</extensions>
            <configuration>
              <publishingServerId>oss</publishingServerId>
              <tokenAuth>true</tokenAuth>
              <autoPublish>true</autoPublish>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.2.0</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <phase>package</phase>
              </execution>
            </executions>
            <configuration>
              <encoding>utf8</encoding>
              <doclint>none</doclint>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.36</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
  </dependencies>
  <properties>
    <skipTests>true</skipTests>
    <jbig2-imageio.version>3.0.4</jbig2-imageio.version>
    <java.version>1.8</java.version>
    <pdfbox.version>3.0.6</pdfbox.version>
    <lombok.version>1.18.36</lombok.version>
  </properties>
</project>
