If I don't specify --debug, I get simply "Could not determine the dependencies of task".
With --debug, I get the output given below.
Looks like this can be a common user error, and should be handled with much nicer diagnostics. Also, the documentation for fileTree() is not really detailed.
15:20:51.301 [ERROR] [org.gradle.BuildExceptionReporter]
15:20:51.303 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
15:20:51.304 [ERROR] [org.gradle.BuildExceptionReporter]
15:20:51.305 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
15:20:51.307 [ERROR] [org.gradle.BuildExceptionReporter] Could not determine the dependencies of task ':compileJava'.
15:20:51.308 [ERROR] [org.gradle.BuildExceptionReporter]
15:20:51.309 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
15:20:51.316 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.GradleException: Could not determine the dependencies of task ':compileJava'.
15:20:51.320 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.resolve(CachingTaskDependencyResolveContext.java:65)
15:20:51.322 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:53)
15:20:51.326 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.fillDag(DefaultTaskGraphExecuter.java:113)
15:20:51.329 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.addTasks(DefaultTaskGraphExecuter.java:66)
15:20:51.332 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.TaskNameResolvingBuildExecuter.select(TaskNameResolvingBuildExecuter.java:60)
15:20:51.339 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DelegatingBuildExecuter.select(DelegatingBuildExecuter.java:46)
15:20:51.340 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.select(DefaultBuildExecuter.java:55)
15:20:51.342 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:150)
15:20:51.344 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
15:20:51.345 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
15:20:51.347 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41)
15:20:51.348 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27)
15:20:51.350 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32)
15:20:51.351 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21)
15:20:51.353 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219)
15:20:51.355 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203)
15:20:51.356 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.execute(Main.java:55)
15:20:51.357 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:40)
15:20:51.360 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46)
15:20:51.362 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28)
15:20:51.363 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
15:20:51.365 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.api.UncheckedIOException: java.io.IOException: Invalid argument
15:20:51.366 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.util.GFileUtils.canonicalise(GFileUtils.java:478)
15:20:51.367 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:50)
15:20:51.369 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:45)
15:20:51.370 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.collections.DefaultConfigurableFileTree.getDir(DefaultConfigurableFileTree.java:73)
15:20:51.372 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.collections.DefaultConfigurableFileTree.resolve(DefaultConfigurableFileTree.java:153)
15:20:51.374 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.resolveNested(DefaultFileCollectionResolveContext.java:135)
15:20:51.377 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.doResolve(DefaultFileCollectionResolveContext.java:99)
15:20:51.378 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:73)
15:20:51.380 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.collections.BuildDependenciesOnlyFileCollectionResolveContext$BuildableFileTreeInternalConverter.convertInto(BuildDependenciesOnlyFileCollectionResolveContext.java:50)
15:20:51.381 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.doResolve(DefaultFileCollectionResolveContext.java:96)
15:20:51.382 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.resolveAsFileCollections(DefaultFileCollectionResolveContext.java:80)
15:20:51.383 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.collections.BuildDependenciesOnlyFileCollectionResolveContext.resolveAsBuildables(BuildDependenciesOnlyFileCollectionResolveContext.java:43)
15:20:51.384 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.CompositeFileCollection.addDependencies(CompositeFileCollection.java:136)
15:20:51.385 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.CompositeFileCollection$3.resolve(CompositeFileCollection.java:124)
15:20:51.387 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext$TaskGraphImpl.getNodeValues(CachingTaskDependencyResolveContext.java:86)
15:20:51.389 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CachingDirectedGraphWalker$GraphWithEmpyEdges.getNodeValues(CachingDirectedGraphWalker.java:173)
15:20:51.391 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CachingDirectedGraphWalker.doSearch(CachingDirectedGraphWalker.java:95)
15:20:51.393 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CachingDirectedGraphWalker.findValues(CachingDirectedGraphWalker.java:63)
15:20:51.394 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.doResolve(CachingTaskDependencyResolveContext.java:74)
15:20:51.395 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.resolve(CachingTaskDependencyResolveContext.java:63)
15:20:51.397 [ERROR] [org.gradle.BuildExceptionReporter] ... 20 more
15:20:51.398 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Invalid argument
15:20:51.400 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.util.GFileUtils.canonicalise(GFileUtils.java:476)
15:20:51.401 [ERROR] [org.gradle.BuildExceptionReporter] ... 39 more
15:20:51.402 [ERROR] [org.gradle.BuildExceptionReporter]
|