I changed my resources declaration to:
srcDirs = ['../src/main/resources', fileTree(dir: '../src/main/groovy').matching { include '**/*.fxml' }]
Now when I run the :framework:assemble target, I get the exception below.
I don’t know how to add the .fxml files in the source tree to the Source Set properly.
Is the Java Plugin doc, section 23.7 (Working with source sets), the best doc available for Source Sets?
Thanks, Neil
org.gradle.api.GradleException: Could not determine the dependencies of task ‘:framework:processResources’.
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.resolve(CachingTaskDependencyResolveContext.java:65)
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:53)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.addToTaskGraph(DefaultTaskExecutionPlan.java:99)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.addTasks(DefaultTaskGraphExecuter.java:74)
at org.gradle.execution.TaskNameResolvingBuildConfigurationAction.configure(TaskNameResolvingBuildConfigurationAction.java:49) Caused by: org.gradle.api.UncheckedIOException: Could not normalize path for file ‘C:\path\to\project\framework\directory ‘…\src\main\groovy’’.
at org.gradle.api.internal.file.AbstractFileResolver.normalise(AbstractFileResolver.java:138)
at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:79)
at org.gradle.api.internal.file.AbstractFileResolver.resolve(AbstractFileResolver.java:60)
at org.gradle.api.internal.file.DefaultSourceDirectorySet.doGetSrcDirTrees(DefaultSourceDirectorySet.java:143)
at org.gradle.api.internal.file.DefaultSourceDirectorySet.getSrcDirTrees(DefaultSourceDirectorySet.java:128)
at org.gradle.api.internal.file.DefaultSourceDirectorySet.resolve(DefaultSourceDirectorySet.java:155)
at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.resolveNested(DefaultFileCollectionResolveContext.java:143)
at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.doResolve(DefaultFileCollectionResolveContext.java:101)
at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:75)
at org.gradle.api.internal.file.collections.BuildDependenciesOnlyFileCollectionResolveContext$BuildableFileTreeInternalConverter.convertInto(BuildDependenciesOnlyFileCollectionResolveContext.java:50)