When you get this error:
Cannot infer Scala class path because no Scala library Jar was found on class path: configuration ':compile'
This indicates that you need to tell gradle which version of Scala you’re interested in, so that it can download it.
To fix this, add the following to build.gradle:
dependencies { compile 'org.scala-lang:scala-library:2.10.1' }