You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by al...@apache.org on 2022/04/07 10:15:35 UTC

[fineract] branch revert-2206-sonarqube created (now 6ad575e3f)

This is an automated email from the ASF dual-hosted git repository.

aleks pushed a change to branch revert-2206-sonarqube
in repository https://gitbox.apache.org/repos/asf/fineract.git


      at 6ad575e3f Revert "Configuring SonarQube using only the sonarqube.yml file"

This branch includes the following new commits:

     new 6ad575e3f Revert "Configuring SonarQube using only the sonarqube.yml file"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[fineract] 01/01: Revert "Configuring SonarQube using only the sonarqube.yml file"

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aleks pushed a commit to branch revert-2206-sonarqube
in repository https://gitbox.apache.org/repos/asf/fineract.git

commit 6ad575e3ffcdd8322a933a255e7adf574233f46b
Author: Aleks <al...@apache.org>
AuthorDate: Thu Apr 7 12:15:31 2022 +0200

    Revert "Configuring SonarQube using only the sonarqube.yml file"
    
    This reverts commit 4648a96a351b2dd85eb750f7e8253b857855b50c.
---
 .github/workflows/sonarqube.yml | 8 +++-----
 .gitignore                      | 2 +-
 build.gradle                    | 8 +++++++-
 3 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml
index 450bc94eb..af4fde7f1 100644
--- a/.github/workflows/sonarqube.yml
+++ b/.github/workflows/sonarqube.yml
@@ -6,11 +6,9 @@ jobs:
     runs-on: ubuntu-20.04
     env:
         TZ: Asia/Kolkata
-        SONAR_ORGANIZATION: ${{ secrets.SONAR_ORGANIZATION }}
-        SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }}
-        SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
+        SONAR_ORGANIZATION: apache
+        SONAR_HOST_URL: https://sonarcloud.io
         SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
-        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     steps:
       - name: Set up cache
         uses: actions/cache@v3
@@ -31,4 +29,4 @@ jobs:
       - name: Validate Gradle wrapper
         uses: gradle/wrapper-validation-action@859c33240bd026ce8d5f711f5adcc65c2f8eafc1
       - name: Sonarqube
-        run: ./gradlew --no-daemon --console=plain -Dsonar.verbose=true -Dsonar.login=$SONAR_TOKEN -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.organization=$SONAR_ORGANIZATION -Dsonar.projectKey=$SONAR_PROJECT_KEY --info -x rat -x test -x spotbugsMain -x spotbugsTest -x spotbugsGenerated -x licenseMain -x licenseTest -x checkstyleMain -x checkstyleTest --info --stacktrace build sonarqube
+        run: ./gradlew --no-daemon --console=plain -Dsonar.verbose=true -Dsonar.login=$SONAR_TOKEN -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.organization=$SONAR_ORGANIZATION --info -x rat -x test -x spotbugsMain -x spotbugsTest -x spotbugsGenerated -x licenseMain -x licenseTest -x checkstyleMain -x checkstyleTest --info --stacktrace build sonarqube
diff --git a/.gitignore b/.gitignore
index d69540d04..0ae3f4373 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,4 +21,4 @@ bin/
 fineract-provider/out/
 fineract-provider/config/swagger/config.json
 fineract-provider/config/swagger/fineract-input.yaml
-licenses
\ No newline at end of file
+licenses
diff --git a/build.gradle b/build.gradle
index 85d70129a..aceebaf98 100644
--- a/build.gradle
+++ b/build.gradle
@@ -241,7 +241,13 @@ allprojects  {
         }
     }
 
-    // Configuration for the sonarqube plugin is now in GitHub Actions
+    // Configuration for the sonarqube plugin
+    // https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-gradle/
+    sonarqube {
+        properties {
+            property "sonar.projectKey", "apache_fineract"
+        }
+    }
 
     // Configuration for the spotless plugin
     // https://github.com/diffplug/spotless/tree/main/plugin-gradle