I have an IntelliJ 14.1.2 Project consisting of two modules - one is an Android Gradle based module and the other is a Spring Java-based module with Maven.
gps-track
the error explain all things, the idea is confused between gradle and maven.
try to create new project with two gradle modules, you can build spring application with gradle as maven.
see this example from spring guides