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
4 changes: 2 additions & 2 deletions .github/workflows/broken_links_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Broken Links Checker

on:
push:
branches: [ master, develop ]
branches: [ main ]
pull_request:
branches: [ master, develop ]
branches: [ main ]

jobs:
linkChecker:
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Java CI with Gradle

on:
push:
branches: [ master, develop ]
branches: [ main ]
pull_request:
branches: [ master, develop ]
branches: [ main ]

jobs:
build:
Expand All @@ -22,9 +22,8 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
with:
fetch-depth: 0

- uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -55,7 +54,7 @@ jobs:
- name: Sonar analysis
if: ${{ env.DEFAULT_JAVA == matrix.java && env.SONAR_TOKEN != null }}
run: |
./gradlew sonarqube -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=itsallcode -Dsonar.login=$SONAR_TOKEN --warning-mode=summary
./gradlew sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=itsallcode -Dsonar.login=$SONAR_TOKEN --warning-mode=summary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "CodeQL"

on:
push:
branches: [develop, master]
branches: [main]
pull_request:
branches: [develop]
branches: [main]
schedule:
- cron: '0 4 * * 3'

Expand Down
10 changes: 0 additions & 10 deletions .vscode/launch.test.json

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.compile.nullAnalysis.mode": "automatic"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.0] - 2023-03-11

- [PR #35](https://github.com/itsallcode/openfasttrace-gradle/pull/35):
- Upgrade to [OpenFastTrace 3.7.0](https://github.com/itsallcode/openfasttrace/releases/tag/3.7.0)
- Upgrade to Gradle 8. Gradle 7.6 is still supported.
- Upgrade other dependencies

## [1.0.0] - 2022-08-21

### Changed
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ If you are looking for general information about what OpenFastTrace is, please m
# What Kind of Contributions can I Make?

## Contributing Code
If you are a programmer and want to help us improve the implementation, test cases or design of OFT please create a branch of the current `develop` branch of OFT using [git](https://git-scm.com/) and make your changes on that branch.
If you are a programmer and want to help us improve the implementation, test cases or design of OFT please create a branch of the current `main` branch of OFT using [git](https://git-scm.com/) and make your changes on that branch.

Then please create a pull request and ask for a review by one of the core team members (e.g. `redcatbear` or `kaklakariada`).
The reviewers will either ask you to work in review findings or if there are none, merge your branch.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ Gradle plugin for the requirement tracing suite [OpenFastTrace](https://github.c

```gradle
plugins {
id "org.itsallcode.openfasttrace" version "1.0.0"
id "org.itsallcode.openfasttrace" version "1.1.0"
}
```

1. Configure your project, see [examples](https://github.com/itsallcode/openfasttrace-gradle/tree/develop/example-projects)
1. Configure your project, see [examples](https://github.com/itsallcode/openfasttrace-gradle/tree/main/example-projects)
1. Run

```bash
Expand Down Expand Up @@ -60,7 +60,7 @@ 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/develop/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.

### Sharing requirements

Expand Down Expand Up @@ -101,7 +101,7 @@ publishing {
}
```

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

#### Importing external requirements

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

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

## Development

Expand Down Expand Up @@ -163,7 +163,7 @@ Import into eclipse using [buildship](https://projects.eclipse.org/projects/tool
### Run local sonar analysis

```bash
./gradlew clean sonarqube --info \
./gradlew clean sonar --info \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=itsallcode \
-Dsonar.login=[token]
Expand Down
25 changes: 11 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
plugins {
id 'java-gradle-plugin'
id 'jacoco'
id 'com.gradle.plugin-publish' version '1.0.0'
id 'org.sonarqube' version '3.4.0.2513'
id 'signing'
id 'com.gradle.plugin-publish' version '1.1.0'
id 'org.sonarqube' version '4.0.0.2929'
id 'pl.droidsonroids.jacoco.testkit' version '1.0.9'
id 'com.github.ben-manes.versions' version '0.42.0'
id 'org.sonatype.gradle.plugins.scan' version '2.4.1'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'org.sonatype.gradle.plugins.scan' version '2.5.5'
}

repositories {
Expand All @@ -14,15 +15,15 @@ repositories {

apply from: 'gradle/workAroundJacocoGradleTestKitIssueOnWindows.gradle'

version = '1.0.0'
version = '1.1.0'
group = 'org.itsallcode'
sourceCompatibility = 11
targetCompatibility = 11

ext {
gradlePluginId = 'org.itsallcode.openfasttrace'
oftVersion = '3.6.0'
junitVersion = '5.9.0'
oftVersion = '3.7.0'
junitVersion = '5.9.2'
if (project.hasProperty('oftSourceDir')) {
oftSourceDir = file(project.oftSourceDir)
useOftSources = oftSourceDir.exists()
Expand Down Expand Up @@ -79,20 +80,16 @@ clean {
propertyFiles.each { delete it }
}

pluginBundle {
gradlePlugin {
website = 'https://github.com/itsallcode/openfasttrace-gradle'
vcsUrl = 'https://github.com/itsallcode/openfasttrace-gradle.git'
tags = ['requirementstracing', 'requirements', 'tracing', 'reqtracing', 'openfasttrace', 'oft']
}

gradlePlugin {
description = 'Gradle plugin for tracing requirements using OpenFastTrace'
plugins {
openFastTracePlugin {
id = gradlePluginId
implementationClass = 'org.itsallcode.openfasttrace.gradle.OpenFastTracePlugin'
displayName = 'OpenFastTrace requirements tracing plugin'
description = 'Gradle plugin for tracing requirements using OpenFastTrace'
tags.addAll(['requirementstracing', 'requirements', 'tracing', 'reqtracing', 'openfasttrace', 'oft'])
}
}
}
Expand All @@ -114,7 +111,7 @@ jacocoTestReport {
}
}

project.tasks["sonarqube"].dependsOn jacocoTestReport
project.tasks["sonar"].dependsOn jacocoTestReport

publishPlugins.dependsOn check

Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
12 changes: 8 additions & 4 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private FilterSettings getFilterSettings()
getLogger().info("Filter: artifactTypes={}, tags={}, acceptItemsWithoutTag={}",
filteredArtifactTypes.get(), filteredTags.get(),
filterAcceptsItemsWithoutTag.get());
return new FilterSettings.Builder() //
return FilterSettings.builder() //
.artifactTypes(filteredArtifactTypes.get()) //
.tags(filteredTags.get()) //
.withoutTags(filterAcceptsItemsWithoutTag.get()).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public enum GradleTestConfig
{
CURRENT_VERSION(null), SEVEN_ZERO("7.0"), SEVEN_FIVE("7.5.1");
CURRENT_VERSION(null), SEVEN_SIX("7.6"), EIGHT("8.0.2");

public final String gradleVersion;

Expand All @@ -13,11 +13,6 @@ private GradleTestConfig(final String gradleVersion)

public boolean supportedWithJvm()
{
final boolean isJava11 = System.getProperty("java.version").startsWith("11");
if (this == SEVEN_ZERO)
{
return isJava11;
}
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void testTraceExampleProjectWithCustomConfig(final GradleTestConfig config) thro
"traceRequirements");
assertEquals(TaskOutcome.SUCCESS, buildResult.task(":traceRequirements").getOutcome());
assertFileContent(PROJECT_CUSTOM_CONFIG_DIR.resolve("build/custom-report.txt"),
"not ok - 0/1>0>0/0 - dsn~exampleB~1 (impl, -utest)", //
"not ok [ in: 1 / 1 ✔ | out: 0 / 0 ] dsn~exampleB~1 (impl, -utest)", //
"not ok - 2 total, 1 defect");
}

Expand Down