Skip to content

Commit

Permalink
Merge pull request #7 from digipost/pdfbox-v2
Browse files Browse the repository at this point in the history
Upgrade to PDFBox v2
  • Loading branch information
runeflobakk authored Sep 10, 2018
2 parents 2dd126a + 4185969 commit 4b24fef
Show file tree
Hide file tree
Showing 13 changed files with 305 additions and 406 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ cache:

language: java
jdk:
- oraclejdk7
- oraclejdk8

9 changes: 1 addition & 8 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,10 @@ Licensed under Apache 2 - http://www.apache.org/licenses/LICENSE-2.0.html

This software includes third party software subject to the following licenses:

Apache Commons Lang under The Apache Software License, Version 2.0
Apache FontBox under Apache License, Version 2.0
Apache JempBox under Apache License, Version 2.0
Apache PDFBox under Apache License, Version 2.0
Digipost Printability Validator under The Apache Software License, Version 2.0
Hamcrest Core under New BSD License
Hamcrest library under New BSD License
JCL 1.1.1 implemented over SLF4J under MIT License
JUnit under Eclipse Public License 1.0
Logback Classic Module under Eclipse Public License - v 1.0 or GNU Lesser General Public License
Logback Core Module under Eclipse Public License - v 1.0 or GNU Lesser General Public License
JCL 1.2 implemented over SLF4J under MIT License
SLF4J API Module under MIT License


145 changes: 55 additions & 90 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,52 @@
<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>

<prerequisites>
<maven>2.2.1</maven>
</prerequisites>

<parent>
<groupId>no.digipost</groupId>
<artifactId>digipost-open-super-pom</artifactId>
<version>0.3</version>
<version>1</version>
<relativePath />
</parent>

<artifactId>printability-validator</artifactId>
<version>2.3-SNAPSHOT</version>
<version>3.1-SNAPSHOT</version>
<name>Digipost Printability Validator</name>
<description>Library for validating 'printability' of documents.</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.10</version>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.7.10</version>
<version>1.7.25</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.2</version>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>1.8.12</version>
<version>2.0.11</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.3.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand All @@ -77,65 +67,81 @@
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
<version>2.5.3</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.jasig.maven</groupId>
<artifactId>maven-notice-plugin</artifactId>
<version>1.0.6.1</version>
<version>1.1.0</version>
<configuration>
<excludeScopes>test</excludeScopes>
<noticeTemplate>${project.basedir}/src/main/notice/NOTICE.template</noticeTemplate>
<licenseMapping>
<param>${project.basedir}/src/main/notice/license-mappings.xml</param>
</licenseMapping>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<version>3.8.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<version>2.22.0</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.6.1</version>
<version>3.1.0</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<version>3.1.1</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
<version>3.1.0</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.4</version>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<version>0.13.0</version>
<configuration>
<newVersion>
<file><path>${project.build.directory}/${project.build.finalName}.${project.packaging}</path></file>
</newVersion>
<parameter>
<onlyModified>true</onlyModified>
<onlyBinaryIncompatible>true</onlyBinaryIncompatible>
<includes>
<include>no.digipost</include>
</includes>
</parameter>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.8</version>
<version>3.0</version>
<configuration>
<header>src/main/license-header.txt</header>
<strictCheck>true</strictCheck>
Expand All @@ -159,7 +165,7 @@
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.1</version>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadoc</id>
Expand All @@ -168,10 +174,14 @@
</goals>
</execution>
</executions>
<configuration>
<doclint>all,-missing</doclint>
<quiet>true</quiet>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<version>3.0.1</version>
<configuration>
<includePom>true</includePom>
</configuration>
Expand Down Expand Up @@ -211,30 +221,9 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.13</version>
<executions>
<execution>
<id>ensure-java7-compatible</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java17</artifactId>
<version>1.0</version>
</signature>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version>
<version>3.0.0-M2</version>
<executions>
<execution>
<id>test</id>
Expand All @@ -244,23 +233,19 @@
<phase>test</phase>
<configuration>
<rules>
<requireMavenVersion>
<version>3.0.5</version>
</requireMavenVersion>
<bannedDependencies>
<excludes>
<exclude>*:*</exclude>
</excludes>
<includes>
<include>org.apache.pdfbox:jempbox</include>
<include>org.apache.pdfbox:pdfbox</include>
<include>org.apache.pdfbox:fontbox</include>
<include>org.slf4j:slf4j-api</include>
<include>org.slf4j:jul-to-slf4j</include>
<include>org.slf4j:jcl-over-slf4j</include>
<include>org.apache.pdfbox</include>
<include>org.slf4j</include>
<include>org.apache.commons:commons-lang3</include>
<include>ch.qos.logback:logback-core</include>
<include>ch.qos.logback:logback-classic</include>
<include>org.hamcrest:hamcrest-core</include>
<include>org.hamcrest:hamcrest-library</include>
<include>junit:junit</include>
<include>org.hamcrest</include>
<include>junit</include>
</includes>
<searchTransitive>true</searchTransitive>
<message>
Expand All @@ -275,26 +260,6 @@
</plugins>
</build>

<profiles>
<profile>
<id>doclint-java8-disable</id>
<activation>
<jdk>[1.8,</jdk>
</activation>

<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<scm>
<connection>scm:git:[email protected]:digipost/printability-validator.git</connection>
<developerConnection>scm:git:[email protected]:digipost/printability-validator.git</developerConnection>
Expand Down

This file was deleted.

Loading

0 comments on commit 4b24fef

Please sign in to comment.