Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: ${{ matrix.java }}

- uses: gradle/wrapper-validation-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 11

- name: Cache Gradle packages and wrapper
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
/build/
/.idea/
/example-projects/*/.gradle
/example-projects/*/gradle
/example-projects/*/gradlew
/example-projects/*/gradlew.bat
/example-projects/*/build
/example-projects/*/gradle.properties
/example-projects/*/.idea
/example-projects/multi-project/*/build
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgrade to [OpenFastTrace 3.2.1](https://github.com/itsallcode/openfasttrace/releases/tag/3.2.1)
- Upgrade other dependencies
- Build and test with Java 16. Please note that Java 16 is only supported with Gradle 7.0+.
- [25](https://github.com/itsallcode/openfasttrace-gradle/pull/25): Upgrade build to Gradle 7.2, test with 7.0.

## [0.9.0] - 2021-05-30

Expand Down
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,36 @@ Gradle plugin for the requirement tracing suite [OpenFastTrace](https://github.c

1. Report is written to `build/reports/tracing.txt` by default.

### Configuring the short tag importer

The short tag importer allows omitting artifact type and the covered artifact type. Optionally you can add a prefix to the item name, e.g. a common module name.

```gradle
requirementTracing {
tags {
tag {
paths = fileTree(dir: 'src/').include '*.impl.*'
coveredItemNamePrefix = 'prefix'
tagArtifactType = 'impl'
coveredItemArtifactType = 'dsn'
}
tag {
paths = fileTree(dir: 'src/').include '*.test.*'
tagArtifactType = 'utest'
coveredItemArtifactType = 'dsn'
}
}
}
```

As a benefit the tags are much shorter and contain only the name and revision:

```java
// [[tagname:1]]
```

See [multi-project/sub1](https://github.com/itsallcode/openfasttrace-gradle/tree/develop/example-projects/multi-project/sub1) for a basic example.

### Sharing requirements

In bigger setups you might want to share requirements between multiple projects.
Expand Down Expand Up @@ -71,7 +101,7 @@ publishing {
}
```

See [publish-config](example-projects\publish-config) for a basic example.
See [publish-config](https://github.com/itsallcode/openfasttrace-gradle/tree/develop/example-projects/publish-config) for a basic example.

#### Importing external requirements

Expand All @@ -88,7 +118,7 @@ requirementTracing {
}
```

See [dependency-config](example-projects\dependency-config) for a basic example.
See [dependency-config](https://github.com/itsallcode/openfasttrace-gradle/tree/develop/example-projects/dependency-config) for a basic example.

## Development

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'com.gradle.plugin-publish' version '0.15.0'
id 'com.github.hierynomus.license' version '0.16.1'
id 'org.sonarqube' version '3.3'
id 'pl.droidsonroids.jacoco.testkit' version '1.0.8'
id 'pl.droidsonroids.jacoco.testkit' version '1.0.9'
id 'com.github.ben-manes.versions' version '0.39.0'
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading