When you get this error:
Cannot infer Scala class path because no repository is declared for the project.
This means the maven repository is not set up – if you add the following it will work. This allows gradle to resolve dependencies on it’s own.
repositories { mavenCentral() }
Weird that my build script already has that declared, also with a couple of repos and the build still fails:
repositories {
mavenLocal()
mavenCentral()
maven{
url ‘http://conjars.org/repo/’
artifactUrls ‘http://clojars.org/repo/’
artifactUrls ‘http://maven.twttr.com/’
}
}