Hello,
I want to make a contribution to the CAS project and am trying to build the server locally, unfortunately it seems I am too stupid to do so :(
I followed the instructions
https://apereo.github.io/cas/developer/Build-Process-6X.html which seem pretty straight-forward. I have only used Maven so far and have never used Gradle, so there is probably something very obvious missing in my local setup, I would be very glad if someone could point me in the right direction.
First I tried to built it from the command line with the following error:
---
/cygdrive/c/git/upstream/cas-server
$ ./gradlew build install --parallel -x test -x javadoc -x check --build-cache --configure-on-demand
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\git\upstream\cas-server\build.gradle' line: 150
* What went wrong:
A problem occurred evaluating root project 'cas-server'.
> Plugin with id 'maven' not found.
* 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.
BUILD FAILED in 3s
---
Next I tried to import the project to IntelliJ Idea (New -> Project frome existing sources -> Build model Gradle) which brings me this:
---
Unable to find method ''java.lang.String org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()''.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
---
I stopped the gradle build daemon (using gradlew --stop) and deleted my ~./.gradle/ directory multiple times - no luck :(
Could someone of the experienced CAS developers point me in the right direction what's wrong with my attempts?
Thanks & best regards,
christian