Lost all my External Libraries after modifying build.gradle

Answered

 I am building a Spring Boot application using Gradle as the build engine. I had something odd occur when I added a dependency to build.gradle. All of my External Libraries disappeared with the exception of my Java libraries. I reverted to my original build.gradle but I couldn't get the External Libraries back. I had to copy my source code to a new workspace. I figured that my changes to build.gradle caused an error that caused my External Libraries to be removed. However, shouldn't I have been able to rebuild the external libraries once I reverted to the original build.gradle?

3 comments
Comment actions Permalink

Did you refresh the Gradle project in the Gradle tool window after reverting build.gradle?

Any errors in idea.log (https://intellij-support.jetbrains.com/hc/articles/207241085)?

1
Comment actions Permalink

I don't think I did. I went back to the old Project and refreshed it and the External Libraries have returned.

 

0
Comment actions Permalink

Thank you, I'm fairly new to IntelliJ and Gradle. I will remember this

 

0

Please sign in to leave a comment.