From 2d9bd9710c48364e19355dc01011b936800edab7 Mon Sep 17 00:00:00 2001 From: Peter Trifanov Date: Wed, 16 Oct 2024 13:35:08 +0200 Subject: [PATCH] SONARIAC-1732 Fix failing build task on public sonar-iac (#53) --- gradle/libs.versions.toml | 2 +- settings.gradle.kts | 34 ---------------------------------- 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index a818756954..45b25f85cb 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -6,7 +6,7 @@ sonar-orchestrator = "5.0.0.2065" junit = "5.11.0" assertj = "3.26.3" mockito = "5.13.0" -sonar-lint = "10.7.1.79146" +sonar-lint = "10.6.0.79033" sslr = "1.24.0.633" archunit = "1.3.0" snakeyaml = "2.8" diff --git a/settings.gradle.kts b/settings.gradle.kts index 594f54b55c..bbb3090bb5 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -2,25 +2,6 @@ pluginManagement { repositories { mavenCentral() gradlePluginPortal() - maven { - name = "artifactory" - url = uri("https://repox.jfrog.io/repox/sonarsource") - val artifactoryUsername = - providers.environmentVariable("ARTIFACTORY_PRIVATE_USERNAME") - .orElse(providers.gradleProperty("artifactoryUsername")) - val artifactoryPassword = - providers.environmentVariable("ARTIFACTORY_PRIVATE_PASSWORD") - .orElse(providers.gradleProperty("artifactoryPassword")) - - if (artifactoryUsername.isPresent && artifactoryPassword.isPresent) { - authentication { - credentials { - username = artifactoryUsername.get() - password = artifactoryPassword.get() - } - } - } - } } } @@ -62,21 +43,6 @@ gradle.allprojects { dependencyResolutionManagement { repositories { mavenCentral() - maven { - url = uri("https://repox.jfrog.io/repox/sonarsource") - authentication { - credentials { - val artifactoryUsername = - System.getenv("ARTIFACTORY_PRIVATE_USERNAME") - ?: providers.gradleProperty("artifactoryUsername").getOrElse("") - val artifactoryPassword = - System.getenv("ARTIFACTORY_PRIVATE_PASSWORD") - ?: providers.gradleProperty("artifactoryPassword").getOrElse("") - username = artifactoryUsername - password = artifactoryPassword - } - } - } } }