Gradle Eclipse

Hello! I’m using Eclipse+Gradle plugin, I have 2 projects, the first is needed to build the second. What i need to do in order to see project 1 in dependencies (in eclipse project tree where all dependencies are shown) of project 2 (otherwise gradle works but I need to configure eclipse project dependencies as it marks everything red (missing dependencies) while i write code that uses classes of project 1). Thank you!

You’ll have to add the first project as a project dependency of the second project in your build script. Take a look at the Gradle documentation for information on how to declare project dependencies.