Errors from scala compiler not showing up

After I made a certain change to a Scala project I’m working on, the gradle build failured but no errors from the Scala compiler were shown. Re-running the build with --debug doesn’t seem to show anything interesting - here are the relevant lines:

14:35:06.047 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:scalac] Scalac params = ''
14:35:11.769 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':compileTestScoverageScala'
14:35:11.769 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :compileTestScoverageScala FAILED
14:35:11.773 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :compileTestScoverageScala (Thread[main,5,main]) completed. Took 7.429 secs.
14:35:11.773 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 51.264 secs, idle: 0.003 secs
14:35:11.787 [ERROR] [org.gradle.BuildExceptionReporter] 
14:35:11.788 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
14:35:11.788 [ERROR] [org.gradle.BuildExceptionReporter] 
14:35:11.788 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
14:35:11.788 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':compileTestScoverageScala'.
14:35:11.789 [ERROR] [org.gradle.BuildExceptionReporter] > Compile failed with 2 errors; see the compiler error output for details.

It looks like you’re hoping for the actual compiler output here.

Can you please let me know the Gradle version, Scala version and OS version?

I fixed this by upgrading to gradle 2.12, which switched to running the scala compiler through Zinc by default instead of via ant. My hunch is that the ant plugin is the culprit, but I haven’t verified this.