Windows. When it is indexing gradle project it is deleting jar content from gradle caches
Answered
For a java 8, gradle project:
- Linux: If it is imported in intellij the project is imported/build and indexed successfully.
- Windows: it will delete classes from jars(or the jars will be empty) from the caches under <USER_HOME>/.gradle/caches during the indexing. Or maybe it is not downloading some jars at all
- Terminal: Linux/Windows builds successfully.
Did you had any issues like that before?
gradlew used with gradle 7.6 version, IntelliJ IDEA 2023.3.2
Deleting <USER_HOME>./gradle and invalidate cache wont help. Tested on multiple windows 10 machines. On any other Linux works ok.
Turning off the antivirus didnt help.
Please sign in to leave a comment.
Hello!
Thank you for reporting this!
Could you please let me know if Gradle/IDEA returns any errors while the Project is imported on Windows?
To further investigate this:
Path - begins with - [Path to Gradle User Home] - Include.[Path to Gradle User Home]should be similar toC:\Users\JohnDoe\.gradleFilter → Drop Filtered Events" option is enabled.File → Save), IDEA's Logs (Help → Collect Logs and Diagnostic Data) along with the full output from the Build Tool Window.