From fdd02d5d3ef0c352a8adb9f42eb574db8d4fbae9 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 13 Jun 2023 13:58:09 +0200 Subject: [PATCH] SONAR-19469 Use latest Gradle scanner for our build and in tutorials --- 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 8d46449357b..e90152598e1 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ plugins { id "de.undercouch.download" version "5.4.0" apply false id 'io.spring.dependency-management' version '1.1.0' id "org.cyclonedx.bom" version "1.7.4" apply false - id 'org.sonarqube' version '4.0.0.2929' + id 'org.sonarqube' version '4.2.1.3168' } 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 918f9f18ec9..7a72fc4ec55 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.0.0.2929" + id "org.sonarqube" version "4.2.1.3168" } sonar { @@ -110,7 +110,7 @@ sonar { exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = ` "plugins { - id("org.sonarqube") version "4.0.0.2929" + id("org.sonarqube") version "4.2.1.3168" } 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 8d9f3823017..d3d5ee8b8e7 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 @@ -231,7 +231,7 @@ jobs: exports[`should follow and complete all steps: Groovy: build.gradle 1`] = ` "plugins { - id "org.sonarqube" version "4.0.0.2929" + id "org.sonarqube" version "4.2.1.3168" } sonar { @@ -244,7 +244,7 @@ sonar { exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = ` "plugins { - id("org.sonarqube") version "4.0.0.2929" + id("org.sonarqube") version "4.2.1.3168" } 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 d87708cae7b..5e7914f5822 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 @@ -82,7 +82,7 @@ exports[`should follow and complete all steps: Gradle: gitlab-ci.yml 1`] = ` exports[`should follow and complete all steps: Groovy: build.gradle 1`] = ` "plugins { - id "org.sonarqube" version "4.0.0.2929" + id "org.sonarqube" version "4.2.1.3168" } sonar { @@ -96,7 +96,7 @@ sonar { exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = ` "plugins { - id ("org.sonarqube") version "4.0.0.2929" + id ("org.sonarqube") version "4.2.1.3168" } 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 5f8c93bd707..9230954e615 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.0.0.2929" + id "org.sonarqube" version "4.2.1.3168" } 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.0.0.2929" + id("org.sonarqube") version "4.2.1.3168" } 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.0.0.2929" + id "org.sonarqube" version "4.2.1.3168" } 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.0.0.2929" + id("org.sonarqube") version "4.2.1.3168" } 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.0.0.2929" + id "org.sonarqube" version "4.2.1.3168" } 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.0.0.2929" + id("org.sonarqube") version "4.2.1.3168" } 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.0.0.2929" + id "org.sonarqube" version "4.2.1.3168" } 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.0.0.2929" + id("org.sonarqube") version "4.2.1.3168" } 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 cee9bc50114..c0e950fa647 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.0.0.2929" + id "org.sonarqube" version "4.2.1.3168" }" `; diff --git a/server/sonar-web/src/main/js/helpers/constants.ts b/server/sonar-web/src/main/js/helpers/constants.ts index 52e9335daba..828f442b408 100644 --- a/server/sonar-web/src/main/js/helpers/constants.ts +++ b/server/sonar-web/src/main/js/helpers/constants.ts @@ -87,4 +87,4 @@ export const IMPORT_COMPATIBLE_ALMS = [ AlmKeys.GitLab, ]; -export const GRADLE_SCANNER_VERSION = '4.0.0.2929'; +export const GRADLE_SCANNER_VERSION = '4.2.1.3168'; -- 2.39.5