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
10 changes: 8 additions & 2 deletions .github/workflows/broken_links_checker.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
name: Broken Links Checker

on:
schedule:
- cron: "0 5 * * *"
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure broken links checker
run: |
mkdir -p ./target
echo '{ "aliveStatusCodes": [429, 200] }' > ./target/broken_links_checker.json
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: ./target/broken_links_checker.json
21 changes: 12 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ jobs:
build:

runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-java-${{ matrix.java }}
cancel-in-progress: true
strategy:
fail-fast: true
matrix:
java: [11, 17]
name: "Build with Java ${{ matrix.java }}"
env:
DEFAULT_JAVA: 11

Expand All @@ -26,14 +31,7 @@ jobs:
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-java-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-java-${{ matrix.java }}-maven-
cache: 'maven'

- name: Cache SonarQube packages
uses: actions/cache@v3
Expand Down Expand Up @@ -62,7 +60,12 @@ jobs:

- name: Sonar analysis
if: ${{ env.DEFAULT_JAVA == matrix.java && env.SONAR_TOKEN != null }}
run: mvn --errors --batch-mode -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=itsallcode -Dsonar.login=$SONAR_TOKEN org.jacoco:jacoco-maven-plugin:prepare-agent sonar:sonar
run: |
mvn --errors --batch-mode \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=itsallcode \
-Dsonar.login=$SONAR_TOKEN \
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ jobs:
with:
distribution: 'temurin'
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Refactoring

- [PR #45](https://github.com/itsallcode/openfasttrace-maven-plugin/pull/45) Upgrade dependencies

## [1.5.0] - 2022-03-17

- [#40](https://github.com/itsallcode/openfasttrace-maven-plugin/pull/40) Upgrade to [OpenFastTrace 3.5.0](https://github.com/itsallcode/openfasttrace/releases/tag/3.5.0)
Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ By default the build will fail when there are errors found during tracing. To co

If you want to build OFT:

apt-get install openjdk-11-jdk maven
```bash
apt-get install openjdk-11-jdk maven
```

### Essential Build Steps

Expand All @@ -99,28 +101,25 @@ Import as a Maven project using *"File" → "Import..." → "Maven" →
mvn license:update-project-license license:update-file-header
```

## Run local sonar analysis
### Run local sonar analysis

```bash
sonar_token="[token]"
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=itsallcode \
-Dsonar.login=[token]
-Dsonar.login=$sonar_token
```

See analysis results at https://sonarcloud.io/dashboard?id=org.itsallcode%3Aopenfasttrace-maven-plugin

## Check for updated dependencies / plugins

```bash
mvn versions:display-dependency-updates
```
### Check for updated dependencies / plugins

```bash
mvn versions:display-plugin-updates
mvn versions:display-dependency-updates versions:display-plugin-updates
```

## Publishing to JCenter and Maven Central
### Publishing to Maven Central

1. Add the following to your `~/.m2/settings.xml`:

Expand Down
43 changes: 22 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<oft.version>3.5.0</oft.version>
<maven.core.version>3.6.3</maven.core.version>
<skipSigningArtifacts>true</skipSigningArtifacts>
<junit.version>5.8.2</junit.version>
<jacoco.version>0.8.7</jacoco.version>
<junit.version>5.9.0</junit.version>
<jacoco.version>0.8.8</jacoco.version>
</properties>

<licenses>
Expand Down Expand Up @@ -69,7 +69,7 @@
<prerequisites>
<maven>${maven.core.version}</maven>
</prerequisites>

<dependencies>
<dependency>
<groupId>org.itsallcode.openfasttrace</groupId>
Expand All @@ -87,6 +87,11 @@
<version>${oft.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
Expand All @@ -100,22 +105,18 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.4.1</version>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.core.version}</version>
<scope>provided</scope>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>3.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.core.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
Expand All @@ -131,13 +132,13 @@
<dependency>
<groupId>com.exasol</groupId>
<artifactId>maven-plugin-integration-testing</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.22.0</version>
<version>3.23.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -166,7 +167,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.0</version>
<executions>
<execution>
<id>enforce-maven</id>
Expand All @@ -186,7 +187,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
<configuration>
<filesets>
<fileset>
Expand Down Expand Up @@ -246,7 +247,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.2</version>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -332,7 +333,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.0.0-M7</version>
<configuration>
<excludes>
<exclude>**VerifierTest.java</exclude>
Expand All @@ -342,7 +343,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.0.0-M7</version>
<configuration>
<includes>
<include>**VerifierTest.java</include>
Expand Down Expand Up @@ -412,12 +413,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M2</version>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.12</version>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
Expand Down