Ensure that only JDK 8 APIs are used where JDK 8 is still required.

Closes #10842
This commit is contained in:
Alexander Schwartz 2022-05-14 18:13:30 +02:00 committed by Pedro Igor
parent eef325ebf4
commit 850af55edc
26 changed files with 6 additions and 84 deletions

View file

@ -31,9 +31,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<keycloak.osgi.export>
org.keycloak.adapters.*
</keycloak.osgi.export>

View file

@ -29,9 +29,6 @@
<artifactId>keycloak-jetty-core</artifactId>
<name>Keycloak Jetty Core Integration</name>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<keycloak.osgi.export>
org.keycloak.adapters.jetty.core.*
</keycloak.osgi.export>

View file

@ -31,9 +31,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<keycloak.osgi.export>
org.keycloak.adapters.servlet.*
</keycloak.osgi.export>

View file

@ -28,10 +28,6 @@
<artifactId>keycloak-tomcat-core-adapter</artifactId>
<name>Keycloak Tomcat Core Integration</name>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<description />
<dependencies>

View file

@ -28,10 +28,6 @@
<artifactId>keycloak-tomcat-adapter</artifactId>
<name>Keycloak Tomcat Integration</name>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<description />
<dependencies>

View file

@ -31,9 +31,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<keycloak.osgi.export>
org.keycloak.adapters.undertow.*
</keycloak.osgi.export>

View file

@ -32,9 +32,6 @@
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
</properties>

View file

@ -31,9 +31,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
</properties>

View file

@ -29,9 +29,6 @@
<artifactId>keycloak-saml-jetty-adapter-core</artifactId>
<name>Keycloak Jetty Core SAML Integration</name>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<jetty9.version>8.1.17.v20150415</jetty9.version>
<keycloak.osgi.export>
org.keycloak.adapters.jetty.core.*

View file

@ -30,11 +30,6 @@
<name>Keycloak SAML Servlet Filter</name>
<description />
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.logging</groupId>

View file

@ -28,10 +28,6 @@
<artifactId>keycloak-saml-tomcat-adapter-core</artifactId>
<name>Keycloak Tomcat Core SAML Integration</name>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<description />
<dependencies>

View file

@ -28,10 +28,6 @@
<artifactId>keycloak-saml-tomcat-adapter</artifactId>
<name>Keycloak Tomcat SAML Integration</name>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<description />
<dependencies>

View file

@ -31,9 +31,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<keycloak.osgi.export>
org.keycloak.adapters.spi.*
</keycloak.osgi.export>

View file

@ -30,11 +30,6 @@
<name>Common JBoss/Wildfly Core Classes</name>
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.logging</groupId>

View file

@ -29,9 +29,6 @@
<artifactId>keycloak-jetty-adapter-spi</artifactId>
<name>Keycloak Jetty Adapter SPI</name>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<jetty9.version>8.1.17.v20150415</jetty9.version>
<keycloak.osgi.export>
org.keycloak.adapters.jetty.spi.*

View file

@ -31,9 +31,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<keycloak.osgi.export>
org.keycloak.adapters.servlet.*
</keycloak.osgi.export>

View file

@ -28,10 +28,6 @@
<artifactId>keycloak-tomcat-adapter-spi</artifactId>
<name>Keycloak Tomcat Adapter SPI</name>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<description />
<dependencies>

View file

@ -31,9 +31,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<keycloak.osgi.export>
org.keycloak.adapters.undertow.*
</keycloak.osgi.export>

View file

@ -18,9 +18,6 @@
<description>KeyCloak AuthZ: Client API</description>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<keycloak.osgi.export>
org.keycloak.authorization.client.*
</keycloak.osgi.export>

View file

@ -32,9 +32,6 @@
<description>Common library and dependencies shared with server and all adapters</description>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
<keycloak.osgi.export>

View file

@ -32,9 +32,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
<keycloak.osgi.export>

View file

@ -1,6 +1,6 @@
## Building from source
Ensure you have JDK 8 (or newer), Maven 3.5.4 (or newer) and Git installed
Ensure you have JDK 11 (or newer), Maven 3.5.4 (or newer) and Git installed
java -version
mvn -version

View file

@ -220,6 +220,11 @@
<!-- 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>

View file

@ -31,9 +31,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
</properties>

View file

@ -31,9 +31,6 @@
<description/>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<timestamp>${maven.build.timestamp}</timestamp>
<skip.security-manager.tests>true</skip.security-manager.tests>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>

View file

@ -25,9 +25,4 @@
<module>cors</module>
<module>spring-boot-adapter-app</module>
</modules>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
</project>