How to remove dependencies in Eclipse?

How can I remove dependencies added by Gradle?

I have a very old .JAVA source file. My task is to put it in a Gradle project and check it into source control. I added dependencies for a couple 3rd party JAR files to my build.gradle. I used the oldest versions listed in Maven. Unfortunately, those JAR files are too new. I manually added the required JAR files, but I can’t figure out how to remove the Gradle-added dependencies. I commented them out of my build.gradle, but they’re still in my Java Build Path. When I click on them under my Java Build Path, all of the options are disabled.

Thanks

Did you use the gradle eclipse task? If yes, make sure to call cleanEclipse to get rid of any old state.

That worked, thanks!

I can’t believe I overlooked the obvious…