Skip to content

Commit 5a6a1bb

Browse files
author
Tom Potts
committed
Amending documentation to include srcDir.
1 parent 7ea6c60 commit 5a6a1bb

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ The previous definition would make examples and performance SourceSets, so that
3333

3434
That will cause the functionalCompile to extend from testCompile, and functionalRuntime to extend from testRuntime, since those are the configurations from the "test" SourceSet.
3535

36+
The source directory defaults to the name of the facet, but this can be overridden if necessary, e.g.
37+
38+
facets {
39+
performance {
40+
srcDir = 'perf'
41+
}
42+
}
43+
44+
This will create a performance SourceSet for code contained in src/perf/java.
45+
3646
Test Facets
3747
--------------
3848

@@ -42,12 +52,13 @@ If "Test" is in the facet name, then a Test task would be created (though it'll
4252
integTest
4353
}
4454

45-
This will create a test task called integTest in addition to the integTest SourceSet. The parent SourceSet can still be overriden like above, and the task name can be set:
55+
This will create a test task called integTest in addition to the integTest SourceSet. The parent SourceSet can still be overriden like above, and the task name and source directory can be set:
4656

4757
facets {
4858
integTest {
4959
parentSourceSet = 'main'
5060
testTaskName = 'integrationTest'
61+
srcDir = 'integ-test'
5162
}
5263
}
5364

@@ -57,6 +68,7 @@ Test facets may opt out of a dependency on the 'check' task by using `includeInC
5768
integTest {
5869
parentSourceSet = 'main'
5970
testTaskName = 'integrationTest'
71+
srcDir = 'integ-test'
6072
includeInCheckLifecycle = false
6173
}
6274
}

0 commit comments

Comments
 (0)