Skip to content

Commit 45c1136

Browse files
committed
Test with Java 21 (LTS), update Maven plugins
1 parent 9f4ad4c commit 45c1136

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

.github/workflows/maven.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
java: ['7', '8', '11', '17', '18']
19+
java: ['7', '8', '11', '17', '21']
2020

2121
steps:
2222
- uses: actions/checkout@v3

pom.xml

+24-9
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,26 @@
8888
<javadoc.opts>-Xdoclint:none</javadoc.opts>
8989
</properties>
9090
</profile>
91+
<profile>
92+
<id>java7-19-compile-java7</id>
93+
<activation>
94+
<jdk>[1.7,19)</jdk>
95+
</activation>
96+
<properties>
97+
<maven.compiler.source>1.7</maven.compiler.source>
98+
<maven.compiler.target>1.7</maven.compiler.target>
99+
</properties>
100+
</profile>
101+
<profile>
102+
<id>java20-compile-java8</id>
103+
<activation>
104+
<jdk>[20,)</jdk>
105+
</activation>
106+
<properties>
107+
<maven.compiler.source>1.8</maven.compiler.source>
108+
<maven.compiler.target>1.8</maven.compiler.target>
109+
</properties>
110+
</profile>
91111
</profiles>
92112

93113
<build>
@@ -118,10 +138,6 @@
118138
<groupId>org.apache.maven.plugins</groupId>
119139
<artifactId>maven-compiler-plugin</artifactId>
120140
<version>3.8.1</version>
121-
<configuration>
122-
<source>1.7</source>
123-
<target>1.7</target>
124-
</configuration>
125141
</plugin>
126142
<plugin>
127143
<groupId>org.apache.maven.plugins</groupId>
@@ -136,7 +152,7 @@
136152
<plugin>
137153
<groupId>org.apache.maven.plugins</groupId>
138154
<artifactId>maven-jar-plugin</artifactId>
139-
<version>3.1.2</version>
155+
<version>3.3.0</version>
140156
<configuration>
141157
<archive>
142158
<manifest>
@@ -155,10 +171,9 @@
155171
<plugin>
156172
<groupId>org.apache.maven.plugins</groupId>
157173
<artifactId>maven-javadoc-plugin</artifactId>
158-
<version>3.1.0</version>
174+
<version>3.6.3</version>
159175
<configuration>
160176
<additionalJOption>${javadoc.opts}</additionalJOption>
161-
<source>1.7</source>
162177
<stylesheetfile>${basedir}/src/main/javadoc/stylesheet.css</stylesheetfile>
163178
<show>public</show>
164179
<windowtitle>metadata-extractor - Javadoc - Extracts Exif, IPTC, XMP, ICC and other metadata from image and video files</windowtitle>
@@ -181,7 +196,7 @@
181196
<plugin>
182197
<groupId>org.apache.maven.plugins</groupId>
183198
<artifactId>maven-gpg-plugin</artifactId>
184-
<version>1.6</version>
199+
<version>3.1.0</version>
185200
<executions>
186201
<execution>
187202
<id>sign-artifacts</id>
@@ -195,7 +210,7 @@
195210
<plugin>
196211
<groupId>org.sonatype.plugins</groupId>
197212
<artifactId>nexus-staging-maven-plugin</artifactId>
198-
<version>1.6.8</version>
213+
<version>1.7.0</version>
199214
<extensions>true</extensions>
200215
<configuration>
201216
<serverId>ossrh</serverId>

0 commit comments

Comments
 (0)