Skip to content

Commit

Permalink
Adding sonarcloud properties
Browse files Browse the repository at this point in the history
  • Loading branch information
josdem committed Jan 12, 2025
1 parent 74b1f23 commit d72ec96
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ jmetadata
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![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)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
---------------------------------------
Complete metadata automatically with MusicBrainz, LastFM or manually.
Expand Down
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d72ec96

Please sign in to comment.