diff --git a/README.md b/README.md index 448128e..34bcf1d 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ -This is an initial Readme \ No newline at end of file +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=leibi-POCS_multitenancy-lib&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=leibi-POCS_multitenancy-lib) + diff --git a/build.gradle b/build.gradle index 9eb0803..d60da2e 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ plugins { id 'java-library' id 'maven-publish' id 'jacoco' + id 'org.sonarqube' version '4.4.1.3373' } group = 'net.leibi' @@ -60,6 +61,14 @@ jacocoTestReport { dependsOn test // tests are required to run before generating the report } +sonar { + properties { + property "sonar.projectKey", "leibi-POCS_multitenancy-lib" + property("sonar.organization", "leibi-pocs") + property "sonar.host.url", "https://sonarcloud.io" + } +} + reckonTagCreate.dependsOn check, test