I'm using IntelliJ IDEA 2016.1.1 on RedHat Linux with Oracle JDK 1.8.0_76-release-b18 and I cannot compile any of the Gradle modules (*_main) in IDEA. If I run an external gradle build that works but for some reason the Make or rebuild project cannot fix this issue.
Any ideas how I can debug what is going on (I turned the log level to DEBUG on build-log.properties file) but the output is not helpfull. Also I can open the missing classes using (Ctrl+N) so the code is definitely there.
What I found is that for some reason when IDEA imported the project from Gradle it marked A LOT of the dependencies as runtime instead of compilation. The dependency declaration is fine on the standalone build.gradle files for each module.
There is anything I need to run, like gradle idea, or IDEA should be able to figure out the correct dependency type on its own?
Thanks in advance (Trying to be ex-eclipse user :-))