From f5305cd1b6b7aa47eaa00dcc05e8647b43ff3063 Mon Sep 17 00:00:00 2001 From: Rune Flobakk Date: Mon, 29 Apr 2024 15:47:25 +0200 Subject: [PATCH 1/7] Update NOTICE to not include test deps --- NOTICE | 7 ------- 1 file changed, 7 deletions(-) diff --git a/NOTICE b/NOTICE index a784c09..130c761 100644 --- a/NOTICE +++ b/NOTICE @@ -13,13 +13,6 @@ This software includes third party software subject to the following licenses: Apache PDFBox io under Apache-2.0 Digipost Printability Validator under The Apache Software License, Version 2.0 JCL 1.2 implemented over SLF4J under Apache License, Version 2.0 - JUnit Jupiter (Aggregator) under Eclipse Public License v2.0 - JUnit Jupiter Engine under Eclipse Public License v2.0 - JUnit Jupiter Params under Eclipse Public License v2.0 - JUnit Platform Commons under Eclipse Public License v2.0 - JUnit Platform Engine API under Eclipse Public License v2.0 - org.apiguardian:apiguardian-api under The Apache License, Version 2.0 - org.opentest4j:opentest4j under The Apache License, Version 2.0 SLF4J API Module under MIT License From 266a5d639c873a0eb39a2b97ebd85bdf4755327a Mon Sep 17 00:00:00 2001 From: Rune Flobakk Date: Mon, 29 Apr 2024 15:47:31 +0200 Subject: [PATCH 2/7] Upgrade PDFBox to 3.0.2 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3cf62ec..4c7a99c 100644 --- a/pom.xml +++ b/pom.xml @@ -57,7 +57,7 @@ org.apache.pdfbox pdfbox - 3.0.1 + 3.0.2 commons-logging @@ -68,7 +68,7 @@ org.apache.pdfbox pdfbox-io - 3.0.1 + 3.0.2 commons-logging From c10dfc3132468bd3d7bb2c64032831acc6314f03 Mon Sep 17 00:00:00 2001 From: Rune Flobakk Date: Mon, 29 Apr 2024 15:51:08 +0200 Subject: [PATCH 3/7] Upgrade dependencies --- pom.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 4c7a99c..67605be 100644 --- a/pom.xml +++ b/pom.xml @@ -33,25 +33,21 @@ 1.8 1.8 - 2.0.10 org.slf4j slf4j-api - ${slf4j-api.version} org.slf4j jcl-over-slf4j - ${slf4j-api.version} runtime org.slf4j slf4j-simple - ${slf4j-api.version} test @@ -94,7 +90,14 @@ org.junit junit-bom - 5.10.1 + 5.10.2 + pom + import + + + org.slf4j + slf4j-bom + 2.0.13 pom import From af24637a98225b409f35fa3b6a514a0b82848841 Mon Sep 17 00:00:00 2001 From: Rune Flobakk Date: Mon, 29 Apr 2024 15:55:15 +0200 Subject: [PATCH 4/7] Avoid duplicate executions for sources and javadoc Already configured with profiles in parent pom, and activated in .mvn/maven.config --- pom.xml | 44 ++++++++------------------------------------ 1 file changed, 8 insertions(+), 36 deletions(-) diff --git a/pom.xml b/pom.xml index 67605be..bbb19ef 100644 --- a/pom.xml +++ b/pom.xml @@ -107,13 +107,6 @@ - - maven-release-plugin - 2.5.3 - - @{project.version} - - org.jasig.maven maven-notice-plugin @@ -160,6 +153,14 @@ versions-maven-plugin 2.7 + + maven-source-plugin + 3.3.1 + + + maven-javadoc-plugin + 3.6.3 + com.github.siom79.japicmp japicmp-maven-plugin @@ -180,35 +181,6 @@ - - maven-source-plugin - 3.0.1 - - true - - - - attach-source - - jar - - - - - - maven-dependency-plugin - - - - analyze-only - - - true - true - - - - maven-enforcer-plugin 3.0.0-M2 From c88d53484ca5c4841e955cb1bde12c0ac0a8c837 Mon Sep 17 00:00:00 2001 From: Rune Flobakk Date: Mon, 29 Apr 2024 16:00:19 +0200 Subject: [PATCH 5/7] Correct dependency for notice plugin --- pom.xml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index bbb19ef..9c32c7b 100644 --- a/pom.xml +++ b/pom.xml @@ -109,12 +109,8 @@ org.jasig.maven - maven-notice-plugin - 1.1.0 - - test - ${project.basedir}/src/main/notice/NOTICE.template - + notice-maven-plugin + 2.0.0 maven-compiler-plugin From cdd9ea976b111f359a38116e4d514bd16cd99874 Mon Sep 17 00:00:00 2001 From: Rune Flobakk Date: Mon, 29 Apr 2024 16:05:30 +0200 Subject: [PATCH 6/7] Upgrade Maven plugins --- pom.xml | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index 9c32c7b..a1214fd 100644 --- a/pom.xml +++ b/pom.xml @@ -114,40 +114,44 @@ maven-compiler-plugin - 3.8.0 + 3.13.0 maven-surefire-plugin - 2.22.0 + 3.2.5 + + + maven-enforcer-plugin + 3.4.1 maven-deploy-plugin - 2.8.2 + 3.1.2 maven-clean-plugin - 3.1.0 + 3.3.2 maven-dependency-plugin - 3.1.1 + 3.6.1 maven-install-plugin - 2.5.2 + 3.1.2 maven-resources-plugin - 3.1.0 + 3.3.1 maven-jar-plugin - 3.1.0 + 3.4.1 org.codehaus.mojo versions-maven-plugin - 2.7 + 2.16.2 maven-source-plugin @@ -160,14 +164,9 @@ com.github.siom79.japicmp japicmp-maven-plugin - 0.13.0 + 0.21.1 - - ${project.build.directory}/${project.build.finalName}.${project.packaging} - - true - true no.digipost @@ -179,7 +178,6 @@ maven-enforcer-plugin - 3.0.0-M2 test @@ -190,7 +188,7 @@ - 3.0.5 + 3.6.3 From 086e0d8425745d24a5ae76961d9ca38cfec8dc99 Mon Sep 17 00:00:00 2001 From: Rune Flobakk Date: Mon, 29 Apr 2024 16:20:27 +0200 Subject: [PATCH 7/7] Remove unused import --- src/main/java/no/digipost/print/validate/PdfValidator.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/no/digipost/print/validate/PdfValidator.java b/src/main/java/no/digipost/print/validate/PdfValidator.java index cb5054f..e1c3068 100644 --- a/src/main/java/no/digipost/print/validate/PdfValidator.java +++ b/src/main/java/no/digipost/print/validate/PdfValidator.java @@ -17,7 +17,6 @@ import no.digipost.print.validate.PdfValidationSettings.Bleed; import org.apache.pdfbox.Loader; -import org.apache.pdfbox.io.RandomAccessInputStream; import org.apache.pdfbox.io.RandomAccessReadBuffer; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage;