|
| 1 | +== Configuration |
| 2 | + |
| 3 | +The plugin provides zero-configuration defaults, but you can customize if needed: |
| 4 | + |
| 5 | +=== Complete Configuration Example |
| 6 | + |
| 7 | +[source,gradle] |
| 8 | +---- |
| 9 | +requirementsTool { |
| 10 | + // Path to requirements annotations YAML |
| 11 | + // Default: build/generated-sources/annotations/resources/annotations.yml |
| 12 | + requirementsAnnotationsFile = file('build/custom-path/annotations.yml') |
| 13 | +
|
| 14 | + // Path to SVCS annotations YAML |
| 15 | + // Default: build/generated-test-sources/test-annotations/resources/annotations.yml |
| 16 | + svcsAnnotationsFile = file('build/custom-path/test-annotations.yml') |
| 17 | +
|
| 18 | + // Output directory for ZIP and combined annotations |
| 19 | + // Default: build/reqstool |
| 20 | + outputDirectory = file('build/custom-output') |
| 21 | +
|
| 22 | + // Dataset directory containing requirements.yml and optional files |
| 23 | + // Default: ./reqstool |
| 24 | + datasetPath = file('custom-reqstool-data') |
| 25 | +
|
| 26 | + // Test result file patterns |
| 27 | + // Default: ['build/test-results/**/*.xml'] |
| 28 | + testResults = ['build/test-results/**/*.xml', 'build/custom-tests/**/*.xml'] |
| 29 | +
|
| 30 | + // Skip entire plugin execution |
| 31 | + // Default: false |
| 32 | + skip = false |
| 33 | +
|
| 34 | + // Skip ZIP assembly but keep annotation combining |
| 35 | + // Default: false |
| 36 | + skipAssembleZipArtifact = false |
| 37 | +
|
| 38 | + // Skip artifact attachment for publishing |
| 39 | + // Default: false |
| 40 | + skipAttachZipArtifact = false |
| 41 | +} |
| 42 | +---- |
| 43 | + |
| 44 | +=== Configuration Parameters |
| 45 | + |
| 46 | +==== requirementsAnnotationsFile |
| 47 | + |
| 48 | +The `requirementsAnnotationsFile` parameter specifies the path to the requirements annotations file. |
| 49 | +Defaults to the value set below. |
| 50 | + |
| 51 | +[source,gradle] |
| 52 | +---- |
| 53 | +requirementsTool { |
| 54 | + requirementsAnnotationsFile = file('build/generated-sources/annotations/resources/annotations.yml') |
| 55 | +} |
| 56 | +---- |
| 57 | + |
| 58 | +==== svcsAnnotationsFile |
| 59 | + |
| 60 | +The `svcsAnnotationsFile` parameter specifies the path to the SVCS (Software Verification Cases) annotations file. |
| 61 | +Defaults to the value set below. |
| 62 | + |
| 63 | +[source,gradle] |
| 64 | +---- |
| 65 | +requirementsTool { |
| 66 | + svcsAnnotationsFile = file('build/generated-test-sources/test-annotations/resources/annotations.yml') |
| 67 | +} |
| 68 | +---- |
| 69 | + |
| 70 | +==== outputDirectory |
| 71 | + |
| 72 | +The `outputDirectory` parameter specifies the path to where to put the generated output. |
| 73 | +Defaults to the value set below. |
| 74 | + |
| 75 | +[source,gradle] |
| 76 | +---- |
| 77 | +requirementsTool { |
| 78 | + outputDirectory = file('build/reqstool') |
| 79 | +} |
| 80 | +---- |
| 81 | + |
| 82 | +==== datasetPath |
| 83 | + |
| 84 | +The `datasetPath` parameter specifies the path to the dataset directory containing requirements.yml and optional files. |
| 85 | +Defaults to the value set below. |
| 86 | + |
| 87 | +[source,gradle] |
| 88 | +---- |
| 89 | +requirementsTool { |
| 90 | + datasetPath = file('./reqstool') |
| 91 | +} |
| 92 | +---- |
| 93 | + |
| 94 | +==== testResults |
| 95 | + |
| 96 | +The `testResults` parameter specifies one or more test result file patterns. |
| 97 | +Supports Ant-style pattern matching. |
| 98 | + |
| 99 | +[source,gradle] |
| 100 | +---- |
| 101 | +requirementsTool { |
| 102 | + testResults = ['build/test-results/**/*.xml', 'build/custom-tests/**/*.xml'] |
| 103 | +} |
| 104 | +---- |
| 105 | + |
| 106 | +==== skip |
| 107 | + |
| 108 | +Skip the execution of the entire plugin. |
| 109 | +Defaults to the value set below. |
| 110 | + |
| 111 | +[source,gradle] |
| 112 | +---- |
| 113 | +requirementsTool { |
| 114 | + skip = false |
| 115 | +} |
| 116 | +---- |
| 117 | + |
| 118 | +==== skipAssembleZipArtifact |
| 119 | + |
| 120 | +Skip ZIP artifact assembly but continue with annotation combining. |
| 121 | +Defaults to the value set below. |
| 122 | + |
| 123 | +[source,gradle] |
| 124 | +---- |
| 125 | +requirementsTool { |
| 126 | + skipAssembleZipArtifact = false |
| 127 | +} |
| 128 | +---- |
| 129 | + |
| 130 | +==== skipAttachZipArtifact |
| 131 | + |
| 132 | +Skip artifact attachment for publishing. |
| 133 | +Defaults to the value set below. |
| 134 | + |
| 135 | +[source,gradle] |
| 136 | +---- |
| 137 | +requirementsTool { |
| 138 | + skipAttachZipArtifact = false |
| 139 | +} |
| 140 | +---- |
| 141 | + |
| 142 | +=== Notes |
| 143 | + |
| 144 | +* All path parameters support both absolute and relative paths |
| 145 | +* The plugin executes after the `check` task by default |
| 146 | +* Test result paths support Ant-style pattern matching |
0 commit comments