Automatic profile activated when using JDK 9+ that sets the compiler's release flag that is not understood by JDK 8

Closes #12631
This commit is contained in:
Alexander Schwartz 2022-06-21 13:59:36 +02:00 committed by Hynek Mlnařík
parent 2c1fc739f0
commit a5615ab438

20
pom.xml
View file

@ -226,11 +226,6 @@
<!-- Frontend -->
<node.version>v16.13.2</node.version>
<!-- Minimum Java version supported for running Keycloak -->
<!-- maven.compiler.target and maven.compiler.source already set to 1.8 in the parent pom -->
<!-- other modules will configure a higher Java version (for example Quarkus) -->
<maven.compiler.release>8</maven.compiler.release>
</properties>
<url>http://keycloak.org</url>
@ -2081,6 +2076,21 @@
</build>
</profile>
<profile>
<id>built-with-jdk-9-or-later</id>
<activation>
<!-- only activate this on JDK 9 or later as this option is unknown for JDK 8, and as it is not necessary for JDK 8 -->
<!-- support for running with JDK 8 is still necessary for some downstream integration tests -->
<jdk>(9,)</jdk>
</activation>
<properties>
<!-- Minimum Java version supported for running Keycloak -->
<!-- maven.compiler.target and maven.compiler.source already set to 1.8 in the parent pom -->
<!-- other modules will configure a higher Java version (for example, Quarkus) -->
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>
<profile>
<id>nexus-staging</id>
<build>