Skip to content

Commit 2ba1276

Browse files
committed
0.4.0 (2023-08-29)
* Changed yaml-doc-tool version to 0.4.0 * Updated fj-bom to 1.2.5 * Added sonar cloud analysis
1 parent a98bd75 commit 2ba1276

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Sonar Cloud Maven Build
2+
on:
3+
# Trigger analysis when pushing in master or pull requests, and when creating
4+
# a pull request.
5+
push:
6+
branches:
7+
- main
8+
- branch-sonarcloud
9+
pull_request:
10+
types:
11+
- opened
12+
- synchronize
13+
- reopened
14+
15+
jobs:
16+
build:
17+
name: Build
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
with:
22+
# Shallow clones should be disabled for a better relevancy of analysis
23+
fetch-depth: 0
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v3
26+
with:
27+
java-version: '17'
28+
distribution: 'corretto'
29+
cache: 'maven'
30+
- name: Cache Maven packages
31+
uses: actions/cache@v1
32+
with:
33+
path: ~/.m2
34+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
35+
restore-keys: ${{ runner.os }}-m2
36+
- name: Cache SonarCloud packages
37+
uses: actions/cache@v1
38+
with:
39+
path: ~/.sonar/cache
40+
key: ${{ runner.os }}-sonar
41+
restore-keys: ${{ runner.os }}-sonar
42+
- name: Maven version
43+
run: mvn -v
44+
env:
45+
# Needed to get some information about the pull request, if any
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
# SonarCloud access token should be generated from https://sonarcloud.io/account/security/
48+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
49+
- name: Build and analyze
50+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage
51+
env:
52+
# Needed to get some information about the pull request, if any
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
# SonarCloud access token should be generated from https://sonarcloud.io/account/security/
55+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.4.0 (2023-08-29)
2+
------------------
3+
* Changed yaml-doc-tool version to 0.4.0
4+
* Updated fj-bom to 1.2.5
5+
* Added sonar cloud analysis
6+
17
0.3.2 (2022-12-01)
28
------------------
39
* Changed yaml-doc-tool version to 0.3.2

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-bom</artifactId>
10-
<version>0.2.3</version>
10+
<version>1.2.5</version>
1111
<relativePath></relativePath>
1212
</parent>
1313

@@ -29,6 +29,10 @@
2929
<maven.compiler.target>1.8</maven.compiler.target>
3030
<maven.compiler.source>1.8</maven.compiler.source>
3131
<yaml-doc-version>${project.version}</yaml-doc-version>
32+
<!-- sonar cloud configuration -->
33+
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
34+
<sonar.organization>fugerit-org</sonar.organization>
35+
<sonar.projectKey>fugerit-org_yaml-doc-maven-plugin</sonar.projectKey>
3236
</properties>
3337

3438
<licenses>

0 commit comments

Comments
 (0)