Skip to content
Draft
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
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ jobs:
restore-keys: ${{ runner.os }}-java-${{ matrix.java }}-sonar

- name: Build with Java ${{ matrix.java }}
# Can't use "--warning-mode fail" because of warning "The Configuration.setVisible(boolean) method has been deprecated."
# in Plugin `pl.droidsonroids.jacoco.testkit`. See https://github.com/itsallcode/openfasttrace-gradle/issues/93
run: |
./gradlew build --warning-mode fail \
./gradlew build --warning-mode all \
--configuration-cache --configuration-cache-problems=fail \
--exclude-task ossIndexAudit \
-PjavaVersion=${{ matrix.java }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0

- name: Build
# See https://github.com/itsallcode/openfasttrace-gradle/issues/93
run: ./gradlew build --warning-mode all -PjavaVersion=17
env:
ORG_GRADLE_PROJECT_ossIndexUsername: ${{ secrets.OSSINDEX_USERNAME }}
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- [#91](https://github.com/itsallcode/openfasttrace-gradle/issues/91) Add Gradle Isolated Projects support for multi-project builds through the `org.itsallcode.openfasttrace.settings` settings plugin, which applies the project plugin to each project for root-level aggregation.

## [3.4.0] - 2026-09-22

- Upgrade to OpenFastTrace [4.10.0](https://github.com/itsallcode/openfasttrace/releases/tag/4.10.0)
Expand Down
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gradle plugin for the requirement tracing suite [OpenFastTrace](https://github.c
## Usage

1. Preconditions: Java 17 and Gradle 9.7.0
1. Add plugin [`org.itsallcode.openfasttrace`](https://plugins.gradle.org/plugin/org.itsallcode.openfasttrace) to your project:
1. Add plugin [`org.itsallcode.openfasttrace`](https://plugins.gradle.org/plugin/org.itsallcode.openfasttrace) to your project. Each project that configures tracing applies the plugin itself:

```groovy
plugins {
Expand Down Expand Up @@ -103,7 +103,27 @@ As a benefit the tags are much shorter and contain only the name and revision:
// [[tagname:1]]
```

See [multi-project/sub1](https://github.com/itsallcode/openfasttrace-gradle/tree/main/example-projects/multi-project/sub1) for a basic example.
See [multi-project/sub1](https://github.com/itsallcode/openfasttrace-gradle/tree/main/example-projects/multi-project/sub1) for a basic example; the subproject applies the plugin in its own `build.gradle`.

### Multi-project Builds

Apply the plugin to the root project to provide the aggregate `collectRequirements` and `traceRequirements` tasks. The settings plugin `org.itsallcode.openfasttrace.settings` automatically applies the project plugin to every project so the root task can aggregate project-local input and tag configuration without accessing subproject models. Declare it in `settings.gradle`:

```groovy
pluginManagement {
repositories {
gradlePluginPortal()
}
}

plugins {
id 'org.itsallcode.openfasttrace.settings' version '3.4.0'
}
```

When developing against this repository, the example settings use `pluginManagement { includeBuild('../../') }` instead of a published plugin version.

The [multi-project example](https://github.com/itsallcode/openfasttrace-gradle/tree/main/example-projects/multi-project) demonstrates a single root report combining subproject tag files.

### Sharing Requirements

Expand Down
16 changes: 15 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'com.gradle.plugin-publish' version '2.2.1'
id 'org.sonarqube' version '7.5.0.8588'
id 'pl.droidsonroids.jacoco.testkit' version '1.0.12'
id 'io.github.ben-manes.versions' version '0.64.0'
id 'io.github.ben-manes.versions' version '0.65.0'
id 'org.sonatype.gradle.plugins.scan' version '4.1.0-02'
}

Expand Down Expand Up @@ -112,6 +112,20 @@ gradlePlugin {
compatibility {
features {
configurationCache = true
isolatedProjects = true
}
}
}
openFastTraceSettingsPlugin {
id = 'org.itsallcode.openfasttrace.settings'
implementationClass = 'org.itsallcode.openfasttrace.gradle.SettingsOpenFastTracePlugin'
displayName = 'OpenFastTrace settings plugin'
description = 'Applies OpenFastTrace to all projects and aggregates their requirements'
tags.addAll(['requirementstracing', 'requirements', 'tracing', 'openfasttrace', 'oft'])
compatibility {
features {
configurationCache = true
isolatedProjects = true
}
}
}
Expand Down
Loading
Loading