From a28c145fb4927634a84209e87e589fd2dcba0fd6 Mon Sep 17 00:00:00 2001 From: Thomas Schaffter Date: Tue, 9 Apr 2024 22:09:19 +0000 Subject: [PATCH] trying `sonar.exclusions` --- apps/openchallenges/challenge-service/build.gradle | 1 + apps/openchallenges/image-service/build.gradle | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openchallenges/challenge-service/build.gradle b/apps/openchallenges/challenge-service/build.gradle index 56db6fcc1a..8299370d2c 100644 --- a/apps/openchallenges/challenge-service/build.gradle +++ b/apps/openchallenges/challenge-service/build.gradle @@ -134,6 +134,7 @@ sonar { property("sonar.host.url", "https://sonarcloud.io") property("sonar.organization", "sage-bionetworks") property("sonar.projectKey", "${project.name}") + property("sonar.exclusions", autoGeneratedFiles.join(",")) property("sonar.coverage.exclusions", autoGeneratedFiles.join(",")) // Include the pull request number (ignored if not set) property("sonar.pullrequest.key", System.getenv('SONAR_PULL_REQUEST_NUMBER')) diff --git a/apps/openchallenges/image-service/build.gradle b/apps/openchallenges/image-service/build.gradle index 925f119dfe..12b6cb12ff 100644 --- a/apps/openchallenges/image-service/build.gradle +++ b/apps/openchallenges/image-service/build.gradle @@ -160,7 +160,7 @@ sonar { '**/RFC3339DateFormat.*' ] properties { - property("sonar.projectKey", "openchallenges-image-service") + property("sonar.projectKey", "${project.name}") property("sonar.organization", "sage-bionetworks") property("sonar.host.url", "https://sonarcloud.io") property("sonar.coverage.exclusions", autoGeneratedFiles.join(","))