Gradle plugin for OpenFastTrace (
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Gradle plugin for the requirement tracing suite OpenFastTrace.

Project Information

Build Status Sonarcloud Quality Gate codecov


  1. Add plugin org.itsallcode.openfasttrace to your project:

    plugins {
      id "org.itsallcode.openfasttrace" version "0.6.0"
  2. Configure your project, see examples

  3. Run

    $ ./gradlew traceRequirements
  4. Report is written to build/reports/tracing.txt by default.

Sharing requirements

In bigger setups you might want to share requirements between multiple projects.

Example: The Software Architecture Design project swad contains overall requirements that must be fulfilled by projects component-a and component-b.

  1. The swad project publishes its requirements as a zip file swad-req to a maven repository.
  2. Both components import these requirements and cover them in their Software Detailed Design (swdd).
  3. Both components publish their requirements as artefacts component-a-req and component-b-req to the shared maven repository.
  4. A regular job check that all requirements from swad are covered by tracing swad-req, component-a-req and component-b-req.

Publishing requirements to a maven repository

If you want to publish requirements to a maven repository you can use the following configuration in your build.gradle:

plugins {
  id 'org.itsallcode.openfasttrace'
  id 'maven-publish'

requirementTracing {
  inputDirectories = files('doc')

task requirementsZip(type: Zip, dependsOn: collectRequirements) {
 from collectRequirements.outputFile
 into '/'

publishing {
  publications {
    maven(MavenPublication) {
      artifact requirementsZip

See publish-config for a basic example.

Importing external requirements

You can import requirements from another project using the importedRequirements configuration. The requirements must be published to a repository as a zip file and can be referenced using the usual gradle dependency syntax:

repositories {
  maven {
    url ""
requirementTracing {
  importedRequirements = ['com.example:swad:1.0.0@zip']

See dependency-config for a basic example.


$ git clone
$ ./gradlew check
# Test report: build/reports/tests/index.html

Use openfasttrace from source

To use openfasttrace from source during development:

  1. Clone to ../openfasttrace

  2. Create file with the following content:

    oftSourceDir = ../openfasttrace

Using eclipse

Import into eclipse using buildship plugin:

  1. Select File > Import... > Gradle > Gradle Project
  2. Click "Next"
  3. Select Project root directory
  4. Click "Finish"

Generate license header for added files:

$ ./gradlew licenseFormat

Publish to


Add your API key to ~/.gradle/

gradle.publish.key = <key>
gradle.publish.secret = <secret>

Publish release

  1. Make sure that property oftSourceDir in file is commented out, i.e. openfasttrace is not used from source.

  2. Update version number in build.gradle and

  3. Commit and push changes

  4. Run

    $ ./gradlew clean publishPlugins

    Plugin will be published at

  5. Create a release in GitHub