I usually use IntelliJ and SBT for my Scala projects, and am forced to use Eclipse with Gradle for a new project, both tools I'm finding to not be well suited to developing Scala.
I'm using Scala IDE 4.6.1, and sometimes when I import an existing Gradle Scala project I've cloned from a Git repo, it refuses to pull in the external dependencies listed in my build.gradle listed in the dependencies {... }
block. My steps for import are:
- File->Import... ->Gradle/Existing Gradle Project- > Next ->
- I Select the cloned parent dir as the project root directory
- Click next and insure my Local Installation Directory is set to the proper place for Gradle: (C:\Program Files (x 86)\Gradle 4.6)
- Click Finish, and once everything is brought in, I right click the project folder in the project explorer, select the gradle folder, and click "refresh gradle project"
Sometimes this works, and sometimes it doesn't. When it works, it brings in 3 folders into the project: JRE System Library, Scala Library Container, and Referenced Libraries.
When it doesn't work, Referenced Libraries is missing, and the code red lines all the external dependencies of the project. Any ideas on how to fix?