Thank you Dmitriy. It works with jvmVendor=ORACLE (with a warning though):

# ./gradlew clean build
Starting a Gradle Daemon (subsequent builds will be faster)
Configuration on demand is an incubating feature.

> Configure project :
Building CAS version 7.1.0-SNAPSHOT with application server -tomcat
Invalid Java installation found at
'/root/.gradle/.tmp/jdks/openjdk-217603280809659208855.tmp' (provisioned
toolchain) auto-detected auto-provisioned. It will be re-checked in the
next build. This might have performance impact if it keeps failing. Run the
'javaToolchains' task for more details.

BUILD SUCCESSFUL in 1m 30s
8 actionable tasks: 8 executed
root@spartana-b3:~/Installer/cas-overlay-template#

Le jeu. 1 août 2024 à 15:32, Dmitriy Kopylenko <dkopyle...@unicon.net> a
écrit :

> There's is this setting in gradle.properties:
>
>
>
>
>
> *# This property controls the JVM vendor that is used to by Gradle
> toolchains.# You may want to build CAS using a Java version that is not
> supported for running Gradle# by setting this property to the vendor of the
> JDK you want to use.# Other options include: AMAZON, ADOPTIUM, JETBRAINS,
> MICROSOFT, ORACLE, SAP, BELLSOFT, etc.jvmVendor=AMAZON*
>
> What it does is using the referenced vendor's toolchain, downloads it, and
> uses it for compilation. It DOES default to Correto, yes, but setting it to
> any other vendor toolchain that you might prefer for compilation, it should
> download it and use it. I've tried several (those JDKs that are not
> statically installed on my system) and it worked flawlessly. For example
> here's part of the build output for jvmVendor=LIBERICA
>
> *>./gradlew clean build*
>
> *Downloading toolchain from URI
> https://api.foojay.io/disco/v3.0/ids/5134ac7a54914eeb21d2b27139d19684/redirect
> <https://api.foojay.io/disco/v3.0/ids/5134ac7a54914eeb21d2b27139d19684/redirect>
> >
> https://api.foojay.io/disco/v3.0/ids/5134ac7a54914eeb21d2b27139d19684/redirect
> <https://api.foojay.io/disco/v3.0/ids/5134ac7a54914eeb21d2b27139d19684/redirect>
> > 96.2 MiB/291.1 MiB*
>
> ...
>
> D.
>
> On Thu, Aug 1, 2024 at 8:56 AM Dmitriy Kopylenko <dkopyle...@unicon.net>
> wrote:
>
>> Something is messing with the build in your environment. Did you use
>> completely fresh overlay?
>>
>> D.
>>
>> On Thu, Aug 1, 2024 at 08:02 wouldsmina <wouldsm...@gmail.com> wrote:
>>
>>> I've just tried with azul openjdk (https://www.azul.com/downloads/#zulu)
>>> but I keep getting the same error.
>>>
>>> * What went wrong:
>>> Could not determine the dependencies of task ':bootWar'.
>>> > Could not resolve all dependencies for configuration
>>> ':runtimeClasspath'.
>>>    > Failed to calculate the value of task ':compileJava' property
>>> 'javaCompiler'.
>>>       > Cannot find a Java installation on your machine matching this
>>> tasks requirements: {languageVersion=21, vendor=matching('AMAZON'),
>>> implementation=vendor-specific} for LINUX on x86_64.
>>>          > No matching toolchain could be found in the locally installed
>>> toolchains or the configured toolchain download repositories.
>>>
>>> # java --version
>>> openjdk 21.0.4 2024-07-16 LTS
>>> OpenJDK Runtime Environment Zulu21.36+17-CA (build 21.0.4+7-LTS)
>>> OpenJDK 64-Bit Server VM Zulu21.36+17-CA (build 21.0.4+7-LTS, mixed
>>> mode, sharing)
>>>
>>> JAVA_HOME=/usr/lib/jvm/zulu-21-amd64/
>>>
>>> Wouldsmina
>>>
>>> Le jeu. 1 août 2024 à 04:56, AJ <a...@mindcrash.com> a écrit :
>>>
>>>> I’ve built it successfully with just OpenJDK.
>>>>
>>>>
>>>> On Jul 31, 2024, at 3:21 PM, Dmitriy Kopylenko <dkopyle...@unicon.net>
>>>> wrote:
>>>>
>>>> 
>>>> Not actually the case.
>>>>
>>>> Here's the successful build of overlay template (7.1.0-SNAPSHOT),
>>>> freshly cloned from here:
>>>> https://github.com/apereo/cas-overlay-template
>>>>
>>>> JDK 21 from Zulu:
>>>>
>>>> *> java -version*
>>>>
>>>>
>>>>
>>>> *openjdk version "21.0.4" 2024-07-16 LTS OpenJDK Runtime Environment
>>>> Zulu21.36+17-CA (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM
>>>> Zulu21.36+17-CA (build 21.0.4+7-LTS, mixed mode, sharing) *
>>>>
>>>> *>./gradlew clean build*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> *Configuration on demand is an incubating feature. > Configure project
>>>> : Building CAS version 7.1.0-SNAPSHOT with application server -tomcat BUILD
>>>> SUCCESSFUL in 7s 8 actionable tasks: 5 executed, 3 from cache*
>>>>
>>>> D.
>>>>
>>>> On Wed, Jul 31, 2024 at 11:34 AM Emmett MacDonald <
>>>> emmettamacdon...@gmail.com> wrote:
>>>>
>>>>> It seems as though amazon corretto has become a new build requirement
>>>>> for cas overlay 7.x.x. Does anyone know why this is?
>>>>>
>>>>> Emmett
>>>>>
>>>>> --
>>>>> - Website: https://apereo.github.io/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/cc046974-7f03-4df1-8b2b-d22186895bc6n%40apereo.org
>>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/cc046974-7f03-4df1-8b2b-d22186895bc6n%40apereo.org?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> - Website: https://apereo.github.io/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/CAMpiYKgoB6tFP67YuyXCgzoHTV1a3-dYKohsRuro9DbQRv0vVA%40mail.gmail.com
>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMpiYKgoB6tFP67YuyXCgzoHTV1a3-dYKohsRuro9DbQRv0vVA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>>
>>>> --
>>>> - Website: https://apereo.github.io/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/5D21CC6C-F34F-4D33-862E-EC1F5BBB39A8%40mindcrash.com
>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/5D21CC6C-F34F-4D33-862E-EC1F5BBB39A8%40mindcrash.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> - Website: https://apereo.github.io/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/CAH2NqNbeghFYt%2B%3D2525U39v%3DtNhnju3GLFm8-6wx0EhFfNp8_w%40mail.gmail.com
>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAH2NqNbeghFYt%2B%3D2525U39v%3DtNhnju3GLFm8-6wx0EhFfNp8_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> - Website: https://apereo.github.io/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/CAMpiYKj_FbiJxAqxX5WbWUHcSMYQwqnxwbgQcA95eozKpo3v6w%40mail.gmail.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMpiYKj_FbiJxAqxX5WbWUHcSMYQwqnxwbgQcA95eozKpo3v6w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
- Website: https://apereo.github.io/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/CAH2NqNam236gdoqkBScgc64H%2BXGcErmqn%3DZ%3D94vRkRv%3D1gM-0A%40mail.gmail.com.

Reply via email to