From 082c1e7d3b004961681a3dc33ba8c88d76b75af8 Mon Sep 17 00:00:00 2001 From: "Matteo Franci a.k.a. Fugerit" Date: Thu, 31 Aug 2023 17:45:18 +0200 Subject: [PATCH] added maven profile 'sonarfugerit' #6 to set sonar cloud properties for fugerit-org --- .github/workflows/sonarcloud-maven.yml | 2 +- CHANGELOG.md | 1 + pom.xml | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonarcloud-maven.yml b/.github/workflows/sonarcloud-maven.yml index 244594a..8fc8b0d 100644 --- a/.github/workflows/sonarcloud-maven.yml +++ b/.github/workflows/sonarcloud-maven.yml @@ -48,7 +48,7 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Build and analyze # fj-bom project send sonar keys as maven parameters - run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=fugerit-org -Dsonar.projectKey=fugerit-org_fj-bom + run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,sonarfugerit -Dsonar.projectKey=fugerit-org_fj-bom env: # Needed to get some information about the pull request, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 305f276..dc39288 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - github action for sonar cloud scan (on branch main and branch-sonarcloud) (#6) +- maven profile 'sonarfugerit' to set sonar cloud properties for fugerit-org (#6) ### Removed diff --git a/pom.xml b/pom.xml index 2b6ea54..4a759de 100644 --- a/pom.xml +++ b/pom.xml @@ -331,6 +331,17 @@ + + sonarfugerit + + + https://sonarcloud.io + fugerit-org + ${project.artifactId} + + + + coverage