Default vs. compileClasspath configurations

In eclipse, my gradle project is fine. However, when I try to execute the build from the command line, I get a compilation error saying that a class is missing. The missing class comes from a transitive dependency to a library that my project depends on.

Doing

./gradlew -q :dependencyInsight --configuration compileClasspath --dependency transitive.jar

gives

No dependencies matching given input were found in configuration ':compileClasspath'

while

./gradlew -q :dependencyInsight --configuration default --dependency transitive.jar

finds the transitive.jar

Is there a way, and if so how, to configure eclipse to behave like the command line, i.e. to use the compileClasspath as its default configuration. That way I could see and resolve all the issues in eclipse.

Thank you.