I wanted to test the SonarQube MCP Server and therefore followed the steps provided in the README
of the GitHub repository.
Beforehand I installed Java JDK 24.0.1 2025-04-15
IDE: VS Code
OS: Windows 11
When running ./gradlew clean build -x test
I get the following output.
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/C:/Users/marc.rufer/.gradle/wrapper/dists/gradle-8.13-bin/5xuhj0ry160q40clulazy9h7d/gradle-8.13/lib/native-platform-0.22-milestone-28.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':check'.
> Could not create task ':test'.
> Could not create task of type 'Test'.
> Could not create an instance of type org.gradle.api.internal.tasks.testing.DefaultTestTaskReports.
> Could not create an instance of type org.gradle.api.reporting.internal.DefaultReportContainer.
> Type T not present
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
BUILD FAILED in 8s
Can you please help?