We have found recently, most likely as a product of the new WPIlib VSCode, but our WPILibNewCommands.json appears to be changing in its formatting, possibly as a product of an autoformatting setting in VSCode being on. When we would make a change and save Robot.java, even with the TimedRobot (Advanced) Skeleton template from WPIlib, the JSON file will add spaces and indentation and as a product make the code unable to build in Gradle, giving the error:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
I thought if anyone else has this issue, what we did that temporarily fixed the issue was:
Ctrl + shift + p → Open command menu
Manage Vendor Libraries (Check all)
Remove all Vendor Libraries
Restart VS Code
Reinstall those vendor libraries
Build works?
If anyone has a more permanent solution, please let us know.