PARQUET-1966: Fix build with JDK11 for JDK8 (#858)
diff --git a/pom.xml b/pom.xml
index c076c76..12277d2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -393,6 +393,7 @@
<!-- Override source and target from the ASF parent -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
+ <version>3.8.1</version>
<configuration>
<argLine>-XX:MaxPermSize=256m</argLine>
<source>${maven.compiler.source}</source>
@@ -625,5 +626,23 @@
</properties>
</profile>
+ <profile>
+ <id>jdk9+</id>
+ <activation>
+ <jdk>[1.9,)</jdk>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <release>8</release>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
</profiles>
</project>