Gradle compile dependency ordering in InteliJ <p>I have a gradle project with subprojects, and Servlet API 2.5. I've added Servlet 3.0 and compile fine from command line gradle. However, InteliJ loads Servlet 2.5 classes first, so I am unable to compile. </p> <p>How can I manage dependency ordering within InteliJ?</p>