Thanks. Tried to clone again this morning and it was magically working !!!

Why ? It took some time to figure it out.

It was working on my local PC (freshly booted) but not on the preproduction (not rebooted).

*The Gradle Daemon !!*

After installing the java-11-openjdk-devel it did nothing unless I restarted the Daemon.

pkill -f GradleDaemon


Anyway. Thanks guys.


Le 20/10/2021 à 05:23, He Vincent a écrit :
I think any JDK11 is OK. Did you re-download cas 6.4 from GITHUB?


Marc Maurice在 2021年10月19日星期二下午10:21:57 [UTC+8]寫道:

    Hello,

    Thanks a lot Robert.

    I was missing the package. Unfortunately the error is still there.

    (also tried with an overlay from initializer : same error)

    [root@15871ceb6a09 initializer]# cat /etc/redhat-release
    CentOS Linux release 7.5.1804 (Core)

    [root@15871ceb6a09 initializer]# rpm -qa| grep openjdk
    java-11-openjdk-11.0.12.0.7-0.el7_9.x86_64
    java-11-openjdk-headless-11.0.12.0.7-0.el7_9.x86_64
    java-11-openjdk-devel-11.0.12.0.7-0.el7_9.x86_64





    Le 19/10/2021 à 15:59, King, Robert a écrit :

    You need the openjdk development packages.

    For instance on RHEL7:

    > yum install java-11-openjdk-devel

    *From:*cas-...@apereo.org <cas-...@apereo.org> *On Behalf Of
    *Marc Maurice
    *Sent:* Tuesday, October 19, 2021 11:25 AM
    *To:* CAS Community <cas-...@apereo.org>
    *Subject:* [EXTERNAL SENDER] [cas-user] Overlay template 6.4
    build failed

    Hello,

    I'm trying to upgrade from cas 6.2 to 6.4.

    As explained in the doc I want to start with a clean 6.4 overlay
    then reapply all my patches.

    I cloned a fresh 6.4 overlay branch from the github project.

    Openjdk 11 installed:

    [root@15871ceb6a09 myclone]# java -version

    openjdk version "11.0.12" 2021-07-20 LTS

    OpenJDK Runtime Environment 18.9 (build 11.0.12+7-LTS)

    OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7-LTS, mixed mode,
    sharing)

    I'm getting the following error. Tried to run gradle in debug
    mode, and googling the error with no success.

    gradle is not giving me any clue why it doesn't like my java
    version...

    [root@15871ceb6a09 myclone]# ./gradlew clean build

    > Task :compileJava FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ':compileJava'.

    > error: release version 11 not supported

    * Try:

    Run with --stacktrace option to get the stack trace. Run with
    --info or --debug option to get more log output. Run with --scan
    to get full insights.

    * Get more help at https://help.gradle.org <https://help.gradle.org>

    Deprecated Gradle features were used in this build, making it
    incompatible with Gradle 8.0.

    You can use '--warning-mode all' to show the individual
    deprecation warnings and determine if they come from your own
    scripts or plugins.

    See
    
https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
    
<https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings>

    BUILD FAILED in 4s

    6 actionable tasks: 6 executed

-- - Website: https://apereo.github.io/cas
    <https://apereo.github.io/cas>
    - Gitter Chatroom: https://gitter.im/apereo/cas
    <https://gitter.im/apereo/cas>
    - List Guidelines: https://goo.gl/1VRrw7 <https://goo.gl/1VRrw7>
    - Contributions: https://goo.gl/mh7qDG <https://goo.gl/mh7qDG>
    ---
    You received this message because you are subscribed to the
    Google Groups "CAS Community" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to cas-user+u...@apereo.org.
    To view this discussion on the web visit
    
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ac396421-ebbb-4f9f-b9c8-58b141c110f0n%40apereo.org
    
<https://groups.google.com/a/apereo.org/d/msgid/cas-user/ac396421-ebbb-4f9f-b9c8-58b141c110f0n%40apereo.org?utm_medium=email&utm_source=footer>.

-- - Website: https://apereo.github.io/cas
    <https://apereo.github.io/cas>
    - Gitter Chatroom: https://gitter.im/apereo/cas
    <https://gitter.im/apereo/cas>
    - List Guidelines: https://goo.gl/1VRrw7 <https://goo.gl/1VRrw7>
    - Contributions: https://goo.gl/mh7qDG <https://goo.gl/mh7qDG>
    ---
    You received this message because you are subscribed to a topic
    in the Google Groups "CAS Community" group.
    To unsubscribe from this topic, visit
    
https://groups.google.com/a/apereo.org/d/topic/cas-user/HOiMGSumH5c/unsubscribe
    
<https://groups.google.com/a/apereo.org/d/topic/cas-user/HOiMGSumH5c/unsubscribe>.
    To unsubscribe from this group and all its topics, send an email
    to cas-user+u...@apereo.org.
    To view this discussion on the web visit
    
https://groups.google.com/a/apereo.org/d/msgid/cas-user/2330c621312a41cb9bc2ecd304c7e815%40mun.ca
    
<https://groups.google.com/a/apereo.org/d/msgid/cas-user/2330c621312a41cb9bc2ecd304c7e815%40mun.ca?utm_medium=email&utm_source=footer>.


--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/0ebf0ead-2ff5-8649-8da4-b17c8aff8d2d%40clever-age.com.

Reply via email to