Skip to content

Commit 534a13d

Browse files
tulinkryVladimir Kotal
authored andcommitted
adding --release 8 argument to JDK9+ build
fixes #2820
1 parent 2769511 commit 534a13d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,25 @@ Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
327327
</pluginManagement>
328328
</build>
329329

330+
<profiles>
331+
<profile>
332+
<id>java9plus-8-release</id>
333+
<activation>
334+
<jdk>[9,18]</jdk>
335+
</activation>
336+
<build>
337+
<plugins>
338+
<plugin>
339+
<artifactId>maven-compiler-plugin</artifactId>
340+
<configuration>
341+
<release>8</release>
342+
</configuration>
343+
</plugin>
344+
</plugins>
345+
</build>
346+
</profile>
347+
</profiles>
348+
330349
<reporting>
331350
<plugins>
332351
<plugin>

0 commit comments

Comments
 (0)