[keycloak-dev] Is keycloak Java 8 only now? Where is it documented?

Vlastimil Elias velias at redhat.com
Fri Jan 8 07:40:46 EST 2016


Hi,

I rebased my local Keycloak source codes to latest master yesterday, and
got compilation error in
org.keycloak.models.sessions.infinispan.InfinispanUserSessionProvider
class, because of import of classes from java.util.function package.
Investigation shown me that these classes are available in Java 8+ only.

Does this mean that next version of Keycloak (1.8) is targeted to run on
Java 8 only?

Is this documented somewhere? Main readme at
https://github.com/keycloak/keycloak still states "Ensure you have JDK 7
(or newer)" in build section. And I was not able to find any other info
about required java version in user doc (eg Installation chapter).

And I also realized that Keycloak's parent pom file (and all subprojet
poms also) miss any information about target java version.
There was this definition in pom file a year ago, but looks like Stian
removed it 9 months ago:

        <!-- maven-compiler-plugin -->

        <maven.compiler.target>1.7</maven.compiler.target>

        <maven.compiler.source>1.7</maven.compiler.source>

This brings a small problem when importing the project into Eclipse, as
it is not able to correctly set java version for the project.
But maybe there is some reason why this is not in the pom? (I can
imagine that adapters use lower java version than the Keycloak server)

Is it possible to clear this somehow, at least in the documentation?

Thanks

Vlastimil

-- 
Vlastimil Elias
Principal Software Engineer
Developer Portal Engineering Team





More information about the keycloak-dev mailing list