From b9e77cac9a32036df27c0312cc0c0b988207a91d Mon Sep 17 00:00:00 2001 From: Vincent Privat Date: Mon, 29 Jul 2024 20:42:47 +0200 Subject: [PATCH] Test with Java 21 (LTS), update Maven plugins --- .github/workflows/maven.yml | 2 +- pom.xml | 39 +++++++++++++++++++++++++------------ 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index fdb69aaab..c94eac290 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - java: ['7', '8', '11', '17', '18'] + java: ['7', '8', '11', '17', '21'] steps: - uses: actions/checkout@v3 diff --git a/pom.xml b/pom.xml index d1d171aed..c116147c8 100644 --- a/pom.xml +++ b/pom.xml @@ -88,6 +88,26 @@ -Xdoclint:none + + java7-19-compile-java7 + + [1.7,19) + + + 1.7 + 1.7 + + + + java20-compile-java8 + + [20,) + + + 1.8 + 1.8 + + @@ -104,7 +124,7 @@ org.apache.maven.plugins maven-source-plugin - 3.1.0 + 3.3.1 attach-sources @@ -117,16 +137,12 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.1 - - 1.7 - 1.7 - + 3.13.0 org.apache.maven.plugins maven-surefire-plugin - 2.22.2 + 3.3.1 **/*Test*.java @@ -136,7 +152,7 @@ org.apache.maven.plugins maven-jar-plugin - 3.1.2 + 3.4.2 @@ -155,10 +171,9 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.1.0 + 3.8.0 ${javadoc.opts} - 1.7 ${basedir}/src/main/javadoc/stylesheet.css public metadata-extractor - Javadoc - Extracts Exif, IPTC, XMP, ICC and other metadata from image and video files @@ -181,7 +196,7 @@ org.apache.maven.plugins maven-gpg-plugin - 1.6 + 3.2.4 sign-artifacts @@ -195,7 +210,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.8 + 1.7.0 true ossrh