From 646d47e2e747e8ffdb71d8f12e4719a781183f0d Mon Sep 17 00:00:00 2001 From: "antoine.vinot" Date: Thu, 4 Apr 2024 16:25:56 +0200 Subject: [PATCH] SONAR-21911 Upgrade Scanner for Gradle to 5.0.0.4638 --- build.gradle | 2 +- .../BitbucketPipelinesTutorial-it.tsx.snap | 4 ++-- .../GithubActionTutorial-it.tsx.snap | 4 ++-- .../__snapshots__/GitLabCITutorial-it.tsx.snap | 4 ++-- .../__snapshots__/JenkinsTutorial-it.tsx.snap | 16 ++++++++-------- .../__snapshots__/OtherTutorial-it.tsx.snap | 2 +- .../sonar-web/src/main/js/helpers/constants.ts | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/build.gradle b/build.gradle index a0b25e44232..bf8e4de225a 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ plugins { id "de.undercouch.download" version "5.5.0" apply false id 'io.spring.dependency-management' version '1.1.4' id "org.cyclonedx.bom" version "1.7.4" apply false - id 'org.sonarqube' version '4.4.1.3373' + id 'org.sonarqube' version '5.0.0.4638' } if (!JavaVersion.current().isCompatibleWith(VERSION_17)) { diff --git a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/BitbucketPipelinesTutorial-it.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/BitbucketPipelinesTutorial-it.tsx.snap index 27bfa07dcbc..0b37b7731b5 100644 --- a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/BitbucketPipelinesTutorial-it.tsx.snap +++ b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/BitbucketPipelinesTutorial-it.tsx.snap @@ -97,7 +97,7 @@ pipelines: exports[`should follow and complete all steps: Groovy: build.gradle 1`] = ` "plugins { - id "org.sonarqube" version "4.4.1.3373" + id "org.sonarqube" version "5.0.0.4638" } sonar { @@ -110,7 +110,7 @@ sonar { exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = ` "plugins { - id("org.sonarqube") version "4.4.1.3373" + id("org.sonarqube") version "5.0.0.4638" } sonar { diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap index dafe8f41a6d..cc2fd570a83 100644 --- a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap +++ b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap @@ -204,7 +204,7 @@ jobs: exports[`should follow and complete all steps: Groovy: build.gradle 1`] = ` "plugins { - id "org.sonarqube" version "4.4.1.3373" + id "org.sonarqube" version "5.0.0.4638" } sonar { @@ -217,7 +217,7 @@ sonar { exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = ` "plugins { - id("org.sonarqube") version "4.4.1.3373" + id("org.sonarqube") version "5.0.0.4638" } sonar { diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap index d650eaa67d8..673c2eee458 100644 --- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap +++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap @@ -93,7 +93,7 @@ sonarqube-vulnerability-report: exports[`should follow and complete all steps: Groovy: build.gradle 1`] = ` "plugins { - id "org.sonarqube" version "4.4.1.3373" + id "org.sonarqube" version "5.0.0.4638" } sonar { @@ -107,7 +107,7 @@ sonar { exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = ` "plugins { - id ("org.sonarqube") version "4.4.1.3373" + id ("org.sonarqube") version "5.0.0.4638" } sonar { diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsTutorial-it.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsTutorial-it.tsx.snap index f4d904bf734..26973bf7fce 100644 --- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsTutorial-it.tsx.snap +++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsTutorial-it.tsx.snap @@ -2,7 +2,7 @@ exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = ` "plugins { - id "org.sonarqube" version "4.4.1.3373" + id "org.sonarqube" version "5.0.0.4638" } sonar { @@ -15,7 +15,7 @@ sonar { exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = ` "plugins { - id("org.sonarqube") version "4.4.1.3373" + id("org.sonarqube") version "5.0.0.4638" } sonar { @@ -209,7 +209,7 @@ exports[`bitbucket: can select devops platform and complete all the steps with c exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = ` "plugins { - id "org.sonarqube" version "4.4.1.3373" + id "org.sonarqube" version "5.0.0.4638" } sonar { @@ -222,7 +222,7 @@ sonar { exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = ` "plugins { - id("org.sonarqube") version "4.4.1.3373" + id("org.sonarqube") version "5.0.0.4638" } sonar { @@ -416,7 +416,7 @@ exports[`bitbucketcloud: can select devops platform and complete all the steps w exports[`github: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = ` "plugins { - id "org.sonarqube" version "4.4.1.3373" + id "org.sonarqube" version "5.0.0.4638" } sonar { @@ -429,7 +429,7 @@ sonar { exports[`github: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = ` "plugins { - id("org.sonarqube") version "4.4.1.3373" + id("org.sonarqube") version "5.0.0.4638" } sonar { @@ -623,7 +623,7 @@ exports[`github: can select devops platform and complete all the steps with copy exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = ` "plugins { - id "org.sonarqube" version "4.4.1.3373" + id "org.sonarqube" version "5.0.0.4638" } sonar { @@ -636,7 +636,7 @@ sonar { exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = ` "plugins { - id("org.sonarqube") version "4.4.1.3373" + id("org.sonarqube") version "5.0.0.4638" } sonar { diff --git a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/OtherTutorial-it.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/OtherTutorial-it.tsx.snap index 732d268b1ae..8371fca630e 100644 --- a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/OtherTutorial-it.tsx.snap +++ b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/OtherTutorial-it.tsx.snap @@ -84,7 +84,7 @@ exports[`can choose build tools and copy provided settings: gradle: execute scan exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = ` "plugins { - id "org.sonarqube" version "4.4.1.3373" + id "org.sonarqube" version "5.0.0.4638" }" `; diff --git a/server/sonar-web/src/main/js/helpers/constants.ts b/server/sonar-web/src/main/js/helpers/constants.ts index 193034eaaab..c11d35de71b 100644 --- a/server/sonar-web/src/main/js/helpers/constants.ts +++ b/server/sonar-web/src/main/js/helpers/constants.ts @@ -185,6 +185,6 @@ export const IMPORT_COMPATIBLE_ALMS = [ AlmKeys.GitLab, ]; -export const GRADLE_SCANNER_VERSION = '4.4.1.3373'; +export const GRADLE_SCANNER_VERSION = '5.0.0.4638'; export const ONE_SECOND = 1000; -- 2.39.5