I am facing problems with my Gradle Build Configuration. I am trying to execute a gradle wrapper command in OpenLiberty specification which is the following,
./gradlew libertyDev
But I am receiving the following errors
- What went wrong: Gradle could not start your build. Could not create service of type BuildLifecycleController using ServicesProvider.createBuildLifecycleController(). Could not create service of type GradleInternal using ServicesProvider.createGradleModel(). Could not create an instance of type org.gradle.invocation.DefaultGradle. Could not configure services using GradleScopeCompileServices.configure().
Inside IntelliJ when I am trying to reload the build.gradle file, I am also receiving the above error. It's definitely clear that my project can't read the build.gradle.
I tried the following:
- Deleting the .gradle folder from the user folder
- Install Gradle again with the help of SDKman
- Created system variables JAVA_HOME & GRADLE_HOME as well as their respective Paths %JAVA_HOME%\bin & %GRADLE_HOME%\bin.
But still I can't overcome this issue and I don't know what I am doing wrong. Can you provide me some advice?