Skip to content

Commit

Permalink
Set test resources directory to sbt default
Browse files Browse the repository at this point in the history
Signed-off-by: Clayton Walker <[email protected]>
  • Loading branch information
Clayton Walker committed Jan 14, 2022
1 parent 3af10b4 commit 3492616
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ private void configureJavaAndScalaSourceSet(Project project) {
mainScalaSourceDirectorySet.srcDir(getTwirlCompileTask(project).flatMap(task -> task.getOutputDirectory()));
mainScalaSourceDirectorySet.srcDir(getRoutesCompileTask(project).flatMap(task -> task.getOutputDirectory()));

SourceSet testSourceSet = PlayPluginHelper.getTestJavaSourceSet(project);
SourceDirectorySet testResourcesDirectorySet = testSourceSet.getResources();
testResourcesDirectorySet.setSrcDirs(Arrays.asList("test/resources"));

SourceDirectorySet testScalaSourceDirectorySet = PlayPluginHelper.getTestScalaSourceDirectorySet(project);
testScalaSourceDirectorySet.setSrcDirs(Arrays.asList("test"));
testScalaSourceDirectorySet.include("**/*.scala", "**/*.java");
Expand Down

0 comments on commit 3492616

Please sign in to comment.