Hello.
I am newbee here and I am trying to install X-Road but I have problem with Gradle.
I have gradle -v
openjdk version "21.0.6" 2025-01-21
OpenJDK Runtime Environment (build 21.0.6+7-Ubuntu-124.04.1)
OpenJDK 64-Bit Server VM (build 21.0.6+7-Ubuntu-124.04.1, mixed mode, sharing)
------------------------------------------------------------
Gradle 4.4.1
------------------------------------------------------------
Build time: 2012-12-21 00:00:00 UTC
Revision: none
Groovy: 2.4.21
Ant: Apache Ant(TM) version 1.10.14 compiled on September 25 2023
JVM: 21.0.6 (Ubuntu 21.0.6+7-Ubuntu-124.04.1)
OS: Linux 5.15.167.4-microsoft-standard-WSL2 amd64
gradle --status
PID STATUS INFO
7158 IDLE 4.4.1
When I run install script I get
Building locally...
./compile_code.sh: line 30: ./gradlew: cannot execute: required file not found
*** Error running build of binaries.(tput sgr0)
and gradle --info
> Configure project :buildSrc
Evaluating project ':buildSrc' using build file '/mnt/c/GIT/X-Road/src/buildSrc/build.gradle'.
…
> Task :buildSrc:compileJava FAILED
Putting task artifact state for task ':buildSrc:compileJava' into context took 0.0 secs.
Up-to-date check for task ':buildSrc:compileJava' took 0.023 secs. It is not up-to-date because:
Task has failed previously.
All input files are considered out-of-date for incremental task ':buildSrc:compileJava'.
ending with
/mnt/c/GIT/X-Road/src/buildSrc/src/main/java/org/niis/xroad/oasvalidatorplugin/Oas3Validator.java:69: error: cannot find symbol
private static ApiValidationResult validateOpenApiSpec(File apiSpecFile) throws ResolutionException {
^
symbol: class ResolutionException
location: class Oas3Validator
12 errors
:compileJava (Thread[#198,Task worker for ':buildSrc',5,main]) completed. Took 0.471 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:compileJava'.
> Compilation failed; see the compiler error output for details.
What can I do?
Thank you in advance.