From d72ec961a8ce40ba82a61e58a205af849a07d588 Mon Sep 17 00:00:00 2001 From: josdem Date: Sun, 12 Jan 2025 10:43:23 -0600 Subject: [PATCH] Adding sonarcloud properties --- README.md | 1 + build.gradle | 11 ++++++++++- gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3221d7b..7d0af81 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ jmetadata [![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-) [![GitHub](https://github.com/josdem/jmetadata/actions/workflows/main.yml/badge.svg)](https://github.com/josdem/jmetadata/actions) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=josdem_jmetadata&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=josdem_jmetadata) --------------------------------------- Complete metadata automatically with MusicBrainz, LastFM or manually. diff --git a/build.gradle b/build.gradle index 2079977..e3184d0 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java' id 'application' id 'jacoco' - id 'org.sonarqube' version '3.5.0.2730' + id 'org.sonarqube' version '6.0.0.5145' id 'com.diffplug.spotless' version '6.25.0' id 'org.springframework.boot' version '3.3.5' id 'io.spring.dependency-management' version '1.1.6' @@ -93,6 +93,15 @@ test { useJUnitPlatform() } +sonar { + properties { + property "sonar.projectKey", "josdem_jmetadata" + property "sonar.organization", "josdem-io" + property "sonar.host.url", "https://sonarcloud.io" + property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml" + } +} + test.dependsOn("spotlessApply") tasks.register('settingCredentials') { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index df97d72..1af9e09 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME