79346080

Date: 2025-01-10 14:54:22
Score: 2
Natty:
Report link

In my case, with Gradle and a custom configuration in the build.gradle, Clean Java Language Server Workspace did not work.

The problem was the following:

The build.gradle contained a custom configuration. By default, many IDEs (including VS Code with the Java extensions) do not automatically pick up libraries that are only declared in a custom configuration. They expect the dependencies to appear in one of the standard configurations.

How to Fix in that case:

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: charlescol