I’ve managed to get my scala application to compile via gradle using the scala plugin. I had to move the java classes that were dependent on scala classes into the scala directory, which seems like a restriction the build tools should not impose. But, aside from that, I then decided to switch on the fast scala compiler (scalaCompileOptions.useCompileDaemon = true). When I did this, gradle could no longer compile the java classes in the scala directory that were dependent on scala classes.
Why should this behaviour differ between a normal scalac and an fsc?
$ export GRADLE_OPTS="-Xmx1024m -Xms64m -Xss4m"; gradle clean compileScala :clean :compileJava :compileScala [ant:javac] /Users/rbarlow/Development/projects/project/src/main/scala/com/project/model/Currency.java:11: cannot find symbol [ant:javac] symbol : class Amount [ant:javac] location: package com.project.module.model [ant:javac] import com.project.module.model.Amount;