Gradle build plugin for reqstool that assembles requirements traceability artifacts.
Collects @Requirements and @SVCs annotations from compiled Java code, combines them with test results, and packages everything into a ZIP artifact for analysis by the reqstool CLI. Supports Java 21+.
Add the plugin to your build.gradle:
plugins {
id 'io.github.reqstool.gradle-plugin' version '0.1.0'
}
requirementsTool {
datasetPath = file('docs/reqstool')
}
tasks.named('build') {
finalizedBy tasks.named('assembleRequirements')
}
tasks.named('assembleRequirements') {
dependsOn tasks.named('test')
}gradle clean buildThe plugin generates a ZIP artifact in build/reqstool/ containing requirements, annotations, and test results.
Full documentation can be found here.
See the organization-wide CONTRIBUTING.md.
MIT License.