Skip to content

Commit

Permalink
Ensure that only JDK 8 APIs are used where JDK 8 is still required.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 authored and pedroigor committed Jun 20, 2022
1 parent eef325e commit 850af55
Show file tree
Hide file tree
Showing 26 changed files with 6 additions and 84 deletions.
3 changes: 0 additions & 3 deletions adapters/oidc/adapter-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions adapters/oidc/jetty/jetty-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions adapters/oidc/servlet-filter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions adapters/oidc/tomcat/tomcat-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions adapters/oidc/tomcat/tomcat/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions adapters/oidc/undertow/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions adapters/saml/core-public/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions adapters/saml/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions adapters/saml/jetty/jetty-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down
5 changes: 0 additions & 5 deletions adapters/saml/servlet-filter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions adapters/saml/tomcat/tomcat-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions adapters/saml/tomcat/tomcat/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions adapters/spi/adapter-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions adapters/spi/jboss-adapter-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions adapters/spi/jetty-adapter-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down
3 changes: 0 additions & 3 deletions adapters/spi/servlet-adapter-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions adapters/spi/tomcat-adapter-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions adapters/spi/undertow-adapter-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions authz/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/building.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions saml-core-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions saml-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions testsuite/integration-arquillian/test-apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 850af55

Please sign in to comment.