Added profile for Java 11+ to guard about generated bytecode
diff --git a/pom.xml b/pom.xml
index 5c2ed5d..fe7e82a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -339,5 +339,26 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>java11</id>
+ <activation>
+ <jdk>[11,)</jdk>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.8.1</version>
+ <configuration>
+ <showDeprecation>true</showDeprecation>
+ <release>${javaVersion}</release>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
</profiles>
</project>