aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2022-11-11 08:20:44 +0100
committersonartech <sonartech@sonarsource.com>2022-11-11 20:02:50 +0000
commit3639887afad7deb00c051642ea4177aaf9160fb7 (patch)
treef6f822013818a472b04aea93789729df55b4a0ed /server
parentd5cb9df0be45fa016ed30caee56053828e1ecda7 (diff)
downloadsonarqube-3639887afad7deb00c051642ea4177aaf9160fb7.tar.gz
sonarqube-3639887afad7deb00c051642ea4177aaf9160fb7.zip
SONAR-17593 Rename gradle task and extension from 'sonarqube' to 'sonar'
Diffstat (limited to 'server')
-rw-r--r--server/build.gradle2
-rw-r--r--server/sonar-ce-common/build.gradle2
-rw-r--r--server/sonar-ce-task-projectanalysis/build.gradle2
-rw-r--r--server/sonar-ce-task/build.gradle2
-rw-r--r--server/sonar-ce/build.gradle2
-rw-r--r--server/sonar-db-core/build.gradle2
-rw-r--r--server/sonar-db-dao/build.gradle2
-rw-r--r--server/sonar-db-migration/build.gradle2
-rw-r--r--server/sonar-docs/build.gradle2
-rw-r--r--server/sonar-docs/src/pages/analysis/bitbucket-cloud-integration.md4
-rw-r--r--server/sonar-docs/src/pages/analysis/github-integration.md3
-rw-r--r--server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-gradle.md44
-rw-r--r--server/sonar-main/build.gradle2
-rw-r--r--server/sonar-process/build.gradle2
-rw-r--r--server/sonar-server-common/build.gradle2
-rw-r--r--server/sonar-web/build.gradle2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/gitlabci/ProjectKeyStep.tsx2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/utils.ts2
-rw-r--r--server/sonar-webserver-api/build.gradle2
-rw-r--r--server/sonar-webserver-auth/build.gradle2
-rw-r--r--server/sonar-webserver-core/build.gradle2
-rw-r--r--server/sonar-webserver-es/build.gradle2
-rw-r--r--server/sonar-webserver-pushapi/build.gradle2
-rw-r--r--server/sonar-webserver-webapi/build.gradle2
-rw-r--r--server/sonar-webserver-ws/build.gradle2
-rw-r--r--server/sonar-webserver/build.gradle2
30 files changed, 53 insertions, 54 deletions
diff --git a/server/build.gradle b/server/build.gradle
index 49d6218996b..2a4d3600a04 100644
--- a/server/build.gradle
+++ b/server/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Server :: Parent"
}
diff --git a/server/sonar-ce-common/build.gradle b/server/sonar-ce-common/build.gradle
index f02fe38e611..207e2e46ad2 100644
--- a/server/sonar-ce-common/build.gradle
+++ b/server/sonar-ce-common/build.gradle
@@ -1,6 +1,6 @@
description = 'Code relating to the Compute Engine shared between the Compute Engine and the Web Server'
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Compute Engine :: Common"
}
diff --git a/server/sonar-ce-task-projectanalysis/build.gradle b/server/sonar-ce-task-projectanalysis/build.gradle
index 78d04b04452..5ad68e98bde 100644
--- a/server/sonar-ce-task-projectanalysis/build.gradle
+++ b/server/sonar-ce-task-projectanalysis/build.gradle
@@ -1,6 +1,6 @@
description = 'Code of the Compute Engine task processing project analysis reports'
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Compute Engine :: Task :: Project Analysis"
}
diff --git a/server/sonar-ce-task/build.gradle b/server/sonar-ce-task/build.gradle
index 5bbea313583..1dd4ec7f979 100644
--- a/server/sonar-ce-task/build.gradle
+++ b/server/sonar-ce-task/build.gradle
@@ -1,6 +1,6 @@
description = 'Definition of a Compute Engine task and utility "framework" and classes to code one'
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Compute Engine :: Task"
}
diff --git a/server/sonar-ce/build.gradle b/server/sonar-ce/build.gradle
index f66a080cfa7..75db8ee6fd7 100644
--- a/server/sonar-ce/build.gradle
+++ b/server/sonar-ce/build.gradle
@@ -1,6 +1,6 @@
description = 'Compute Engine JVM application'
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Compute Engine"
}
diff --git a/server/sonar-db-core/build.gradle b/server/sonar-db-core/build.gradle
index c37d4764667..845e2e645e5 100644
--- a/server/sonar-db-core/build.gradle
+++ b/server/sonar-db-core/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Database Core"
}
diff --git a/server/sonar-db-dao/build.gradle b/server/sonar-db-dao/build.gradle
index eecd0a08593..59a2bf70848 100644
--- a/server/sonar-db-dao/build.gradle
+++ b/server/sonar-db-dao/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: DAO"
}
diff --git a/server/sonar-db-migration/build.gradle b/server/sonar-db-migration/build.gradle
index 1cb23f4fdce..c19929c27af 100644
--- a/server/sonar-db-migration/build.gradle
+++ b/server/sonar-db-migration/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Database Migration"
}
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle
index 0564c46e096..0315080a708 100644
--- a/server/sonar-docs/build.gradle
+++ b/server/sonar-docs/build.gradle
@@ -8,7 +8,7 @@ Pattern PLUGIN_NAME_PATTERN = Pattern.compile("(sonar-.*-plugin)(.*)")
* This module is building the zip file containing the static web site
*/
-sonarqube {
+sonar {
skipProject = true
}
diff --git a/server/sonar-docs/src/pages/analysis/bitbucket-cloud-integration.md b/server/sonar-docs/src/pages/analysis/bitbucket-cloud-integration.md
index da79548b30e..46a7fa1aaf4 100644
--- a/server/sonar-docs/src/pages/analysis/bitbucket-cloud-integration.md
+++ b/server/sonar-docs/src/pages/analysis/bitbucket-cloud-integration.md
@@ -104,7 +104,7 @@ Click the scanner you're using below to expand the example configuration:
| - gradle
| - sonar
| script:
-| - bash ./gradlew sonarqube
+| - bash ./gradlew sonar
| caches:
| sonar: ~/.sonar
|
@@ -301,4 +301,4 @@ SonarQube can also report your Quality Gate status to Bitbucket Cloud pull reque
## Authenticating with Bitbucket Cloud
-See [Authenticating with Bitbucket Cloud](/instance-administration/authentication/bitbucket-cloud/) \ No newline at end of file
+See [Authenticating with Bitbucket Cloud](/instance-administration/authentication/bitbucket-cloud/)
diff --git a/server/sonar-docs/src/pages/analysis/github-integration.md b/server/sonar-docs/src/pages/analysis/github-integration.md
index aeb67379c20..a4db3276b99 100644
--- a/server/sonar-docs/src/pages/analysis/github-integration.md
+++ b/server/sonar-docs/src/pages/analysis/github-integration.md
@@ -216,7 +216,7 @@ Click the scanner you're using below to expand the example configuration:
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
| SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
-| run: ./gradlew build sonarqube --info
+| run: ./gradlew build sonar --info
| ```
@@ -416,4 +416,3 @@ Initially, all issues marked **Open** on SonarQube are marked **Open** on GitHub
|Dismiss: Used in tests|Resolve (Won't Fix)|
|Dismiss: Won't fix|Resolve (Won't Fix)|
- \ No newline at end of file
diff --git a/server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-gradle.md b/server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-gradle.md
index f091c68970a..90e0a2fb88c 100644
--- a/server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-gradle.md
+++ b/server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-gradle.md
@@ -11,9 +11,9 @@ url: /analysis/scan/sonarscanner-for-gradle/
| See the [online documentation](https://redirect.sonarsource.com/doc/download-scanner-gradle.html) to get more details on the latest version of the scanner and how to download it.
<!-- /embedded -->
-The SonarScanner for Gradle provides an easy way to start SonarQube analysis of a Gradle project.
+The SonarScanner for Gradle provides an easy way to start the scan of a Gradle project.
-The ability to execute the SonarQube analysis via a regular Gradle task makes it available anywhere Gradle is available (developer build, CI server, etc.), without the need to manually download, setup, and maintain a SonarQube Runner installation. The Gradle build already has much of the information needed for SonarQube to successfully analyze a project. By preconfiguring the analysis based on that information, the need for manual configuration is reduced significantly.
+The ability to execute the SonarScanner analysis via a regular Gradle task makes it available anywhere Gradle is available (developer build, CI server, etc.), without the need to manually download, setup, and maintain a SonarScanner CLI installation. The Gradle build already has much of the information needed for the SonarScanner to successfully analyze a project. By preconfiguring the analysis based on that information, the need for manual configuration is reduced significantly.
## Prerequisites
* Gradle versions 5+
@@ -42,14 +42,14 @@ Ensure that you declare the plugins in the correct sequence required by Gradle,
Assuming a local SonarQube server with out-of-the-box settings is up and running, no further configuration is required.
-You need to pass an [authentication token](/user-guide/user-token/) using the `sonar.login` property in your command line or you configure it as part of your `gradle.properties` file. Execute `gradle sonarqube -Dsonar.login=yourAuthenticationToken` and wait until the build has completed, then open the web page indicated at the bottom of the console output. You should now be able to browse the analysis results.
+You need to pass an [authentication token](/user-guide/user-token/) using the `sonar.login` property in your command line or you configure it as part of your `gradle.properties` file. Execute `gradle sonar -Dsonar.login=yourAuthenticationToken` and wait until the build has completed, then open the web page indicated at the bottom of the console output. You should now be able to browse the analysis results.
## Analyzing Multi-Project Builds
-To analyze a project hierarchy, apply the SonarQube plugin to the root project of the hierarchy. Typically (but not necessarily) this will be the root project of the Gradle build. Information pertaining to the analysis as a whole has to be configured in the sonarqube block of this project. Any properties set on the command line also apply to this project.
+To analyze a project hierarchy, apply the SonarQube plugin to the root project of the hierarchy. Typically (but not necessarily) this will be the root project of the Gradle build. Information pertaining to the analysis as a whole has to be configured in the sonar block of this project. Any properties set on the command line also apply to this project.
```
// build.gradle
-sonarqube {
+sonar {
properties {
property "sonar.sourceEncoding", "UTF-8"
}
@@ -60,7 +60,7 @@ Configuration shared between subprojects can be configured in a subprojects bloc
```
// build.gradle
subprojects {
- sonarqube {
+ sonar {
properties {
property "sonar.sources", "src"
}
@@ -68,35 +68,35 @@ subprojects {
}
```
-Project-specific information is configured in the `sonarqube` block of the corresponding project.
+Project-specific information is configured in the `sonar` block of the corresponding project.
```
// build.gradle
project(":project1") {
- sonarqube {
+ sonar {
properties {
property "sonar.branch", "Foo"
}
}}
```
-To skip SonarQube analysis for a particular subproject, set sonarqube.skipProject to true.
+To skip SonarScanner analysis for a particular subproject, set sonar.skipProject to true.
```
// build.gradle
project(":project2") {
- sonarqube {
+ sonar {
skipProject = true
}
}
```
## Task dependencies
-All tasks that produce output that should be included in the SonarQube analysis need to be executed before the `sonarqube` task runs. Typically, these are compile tasks, test tasks, and [code coverage](/analysis/coverage/) tasks.
+All tasks that produce output that should be included in the SonarScanner analysis need to be executed before the `sonar` task runs. Typically, these are compile tasks, test tasks, and [code coverage](/analysis/coverage/) tasks.
Starting with v3.0 of the SonarScanner for Gradle, task dependencies are no longer added automatically. Instead, the SonarScanner plugin enforces the correct order of tasks with `mustRunAfter`. You need to be either manually run the tasks that produce output before `sonarqube`, or you can add a dependency to the build script:
```
// build.gradle
-project.tasks["sonarqube"].dependsOn "anotherTask"
+project.tasks["sonar"].dependsOn "anotherTask"
```
## Sample project
@@ -107,7 +107,7 @@ https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-sca
## Analysis property defaults
The SonarScanner for Gradle uses information contained in Gradle's object model to provide smart defaults for most of the standard [analysis parameters](/analysis/analysis-parameters/), as listed below.
-Gradle defaults for standard SonarQube properties:
+Gradle defaults for standard Sonar properties:
Property|Gradle default
---|---
@@ -152,7 +152,7 @@ By default the first variant of type "debug" will be used to configure the analy
```
build.gradle
-sonarqube {
+sonar {
androidVariant 'fullDebug'
}
```
@@ -168,23 +168,23 @@ Property| Gradle default
## Passing manual properties / overriding defaults
-The SonarScanner for Gradle adds a SonarQubeExtension extension to project and its subprojects, which allows you to configure/override the analysis properties.
+The SonarScanner for Gradle adds a SonarExtension extension to project and its subprojects, which allows you to configure/override the analysis properties.
```
// in build.gradle
-sonarqube {
+sonar {
properties {
property "sonar.exclusions", "**/*Generated.java"
}
}
```
-SonarQube properties can also be set from the command line, or by setting a system property named exactly like the SonarQube property in question. This can be useful when dealing with sensitive information (e.g. credentials), environment information, or for ad-hoc configuration.
+Sonar properties can also be set from the command line, or by setting a system property named exactly like the Sonar property in question. This can be useful when dealing with sensitive information (e.g. credentials), environment information, or for ad-hoc configuration.
```
-gradle sonarqube -Dsonar.host.url=http://sonar.mycompany.com -Dsonar.verbose=true
+gradle sonar -Dsonar.host.url=http://sonar.mycompany.com -Dsonar.verbose=true
```
While certainly useful at times, we recommend keeping the bulk of the configuration in a (versioned) build script, readily available to everyone.
-A SonarQube property value set via a system property overrides any value set in a build script (for the same property). When analyzing a project hierarchy, values set via system properties apply to the root project of the analyzed hierarchy. Each system property starting with `sonar.` will be taken into account.
+A Sonar property value set via a system property overrides any value set in a build script (for the same property). When analyzing a project hierarchy, values set via system properties apply to the root project of the analyzed hierarchy. Each system property starting with `sonar.` will be taken into account.
@@ -193,7 +193,7 @@ By default, the SonarScanner for Gradle passes on the project's main source set
```
// build.gradle
-sonarqube {
+sonar {
properties {
properties["sonar.sources"] += sourceSets.custom.allSource.srcDirs
properties["sonar.tests"] += sourceSets.integTest.allSource.srcDirs
@@ -202,8 +202,8 @@ sonarqube {
```
## Advanced topics
-### More on configuring SonarQube properties
-Let's take a closer look at the `sonarqube.properties` `{}` block. As we have already seen in the examples, the `property()` method allows you to set new properties or override existing ones. Furthermore, all properties that have been configured up to this point, including all properties preconfigured by Gradle, are available via the properties accessor.
+### More on configuring Sonar properties
+Let's take a closer look at the `sonar.properties` `{}` block. As we have already seen in the examples, the `property()` method allows you to set new properties or override existing ones. Furthermore, all properties that have been configured up to this point, including all properties preconfigured by Gradle, are available via the properties accessor.
Entries in the properties map can be read and written with the usual Groovy syntax. To facilitate their manipulation, values still have their “idiomatic” type (File, List, etc.). After the sonarProperties block has been evaluated, values are converted to Strings as follows: Collection values are (recursively) converted to comma-separated Strings, and all other values are converted by calling their `toString()` methods.
diff --git a/server/sonar-main/build.gradle b/server/sonar-main/build.gradle
index 4f6590b8518..a5679c57687 100644
--- a/server/sonar-main/build.gradle
+++ b/server/sonar-main/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Main Process"
}
diff --git a/server/sonar-process/build.gradle b/server/sonar-process/build.gradle
index fcdce73fbf0..0ac0583073f 100644
--- a/server/sonar-process/build.gradle
+++ b/server/sonar-process/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Process"
}
diff --git a/server/sonar-server-common/build.gradle b/server/sonar-server-common/build.gradle
index 71e74568cfd..4591dcd9bfc 100644
--- a/server/sonar-server-common/build.gradle
+++ b/server/sonar-server-common/build.gradle
@@ -1,6 +1,6 @@
description = 'Code shared between the Web Server and the Compute Engine'
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Server :: Common"
}
diff --git a/server/sonar-web/build.gradle b/server/sonar-web/build.gradle
index 2d019b148f6..320e9eb6f67 100644
--- a/server/sonar-web/build.gradle
+++ b/server/sonar-web/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property "sonar.projectName", "${projectTitle} :: Web"
property "sonar.sources", "src/main/js"
diff --git a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap
index 17dd4599905..658a4d8e1c5 100644
--- a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap
@@ -61,7 +61,7 @@ exports[`should render correctly for gradle 1`] = `
id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
}
-sonarqube {
+sonar {
properties {
property \\"sonar.projectKey\\", \\"my-project\\"
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap
index 4259dfdb12d..08060e05dfa 100644
--- a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap
@@ -33,7 +33,7 @@ exports[`should render correctly 1`] = `
id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
}
-sonarqube {
+sonar {
properties {
property \\"sonar.projectKey\\", \\"my-project\\"
}
@@ -121,7 +121,7 @@ exports[`should render correctly: without branch enabled 1`] = `
id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
}
-sonarqube {
+sonar {
properties {
property \\"sonar.projectKey\\", \\"my-project\\"
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/ProjectKeyStep.tsx b/server/sonar-web/src/main/js/components/tutorials/gitlabci/ProjectKeyStep.tsx
index ad6bbbab042..80268bc0ebd 100644
--- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/ProjectKeyStep.tsx
+++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/ProjectKeyStep.tsx
@@ -49,7 +49,7 @@ const gradleSnippet = (key: string) => `plugins {
id "org.sonarqube" version "${GRADLE_SCANNER_VERSION}"
}
-sonarqube {
+sonar {
properties {
property "sonar.projectKey", "${key}"
property "sonar.qualitygate.wait", true
diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap
index d1cc4389e27..ac40253b2df 100644
--- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap
@@ -148,7 +148,7 @@ exports[`should render correctly for build tool gradle 1`] = `
id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
}
-sonarqube {
+sonar {
properties {
property \\"sonar.projectKey\\", \\"my-project\\"
property \\"sonar.qualitygate.wait\\", true
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap
index c35c96fbba7..a6458f4cf17 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap
@@ -14,7 +14,7 @@ exports[`should render correctly 1`] = `
id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
}
-sonarqube {
+sonar {
properties {
property \\"sonar.projectKey\\", \\"my-project\\"
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/utils.ts b/server/sonar-web/src/main/js/components/tutorials/utils.ts
index 36a4ec685cf..3b7cefd926e 100644
--- a/server/sonar-web/src/main/js/components/tutorials/utils.ts
+++ b/server/sonar-web/src/main/js/components/tutorials/utils.ts
@@ -31,7 +31,7 @@ export function buildGradleSnippet(key: string) {
id "org.sonarqube" version "${GRADLE_SCANNER_VERSION}"
}
-sonarqube {
+sonar {
properties {
property "sonar.projectKey", "${key}"
}
diff --git a/server/sonar-webserver-api/build.gradle b/server/sonar-webserver-api/build.gradle
index baa5b8aa75a..872a3d14fd4 100644
--- a/server/sonar-webserver-api/build.gradle
+++ b/server/sonar-webserver-api/build.gradle
@@ -1,6 +1,6 @@
description = 'SonarQube WebServer internal APIs, used by other Web Server modules or Core Extensions'
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: WebServer :: API"
}
diff --git a/server/sonar-webserver-auth/build.gradle b/server/sonar-webserver-auth/build.gradle
index d12c870ed9c..4c981061e48 100644
--- a/server/sonar-webserver-auth/build.gradle
+++ b/server/sonar-webserver-auth/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: WebServer :: Authentification and Identity"
}
diff --git a/server/sonar-webserver-core/build.gradle b/server/sonar-webserver-core/build.gradle
index 6443e5c4524..da0a48c0892 100644
--- a/server/sonar-webserver-core/build.gradle
+++ b/server/sonar-webserver-core/build.gradle
@@ -1,6 +1,6 @@
description = 'SonarQube WebServer-only code'
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: Web Server :: Core"
}
diff --git a/server/sonar-webserver-es/build.gradle b/server/sonar-webserver-es/build.gradle
index dd127fd35c3..8acb0712834 100644
--- a/server/sonar-webserver-es/build.gradle
+++ b/server/sonar-webserver-es/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: WebServer :: ES"
}
diff --git a/server/sonar-webserver-pushapi/build.gradle b/server/sonar-webserver-pushapi/build.gradle
index c7549d06ba5..de2feba9561 100644
--- a/server/sonar-webserver-pushapi/build.gradle
+++ b/server/sonar-webserver-pushapi/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: WebServer :: PushAPI"
}
diff --git a/server/sonar-webserver-webapi/build.gradle b/server/sonar-webserver-webapi/build.gradle
index 77956eacc4e..9ffdc194cc1 100644
--- a/server/sonar-webserver-webapi/build.gradle
+++ b/server/sonar-webserver-webapi/build.gradle
@@ -1,4 +1,4 @@
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: WebServer :: WebAPI"
}
diff --git a/server/sonar-webserver-ws/build.gradle b/server/sonar-webserver-ws/build.gradle
index 535d1036e5f..893e1b0a2a0 100644
--- a/server/sonar-webserver-ws/build.gradle
+++ b/server/sonar-webserver-ws/build.gradle
@@ -1,6 +1,6 @@
description = 'WebServer "API" to write Web Services'
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: WebServer :: WS"
}
diff --git a/server/sonar-webserver/build.gradle b/server/sonar-webserver/build.gradle
index 468b3f4fba5..76728cefc98 100644
--- a/server/sonar-webserver/build.gradle
+++ b/server/sonar-webserver/build.gradle
@@ -1,6 +1,6 @@
description = 'SonarQube WebServer executable and Tomcat directly related code'
-sonarqube {
+sonar {
properties {
property 'sonar.projectName', "${projectTitle} :: WebServer"
}