pluginManagement { repositories { def artifactoryPassword = System.env.'ARTIFACTORY_PRIVATE_PASSWORD' maven { if (artifactoryPassword) { url 'https://repox.jfrog.io/repox/plugins.gradle.org/' authentication { header(HttpHeaderAuthentication) } credentials(HttpHeaderCredentials) { name = "Authorization" value = "Bearer $artifactoryPassword" } } else { url 'https://plugins.gradle.org/m2/' } } } plugins { id 'com.bmuschko.docker-remote-api' version '9.4.0' id 'org.ajoberstar.grgit' version '4.1.1' } } rootProject.name = 'sonarqube' include 'plugins:sonar-xoo-plugin' include 'plugins:sonar-education-plugin' include 'server:sonar-auth-common' include 'server:sonar-auth-bitbucket' include 'server:sonar-auth-github' include 'server:sonar-auth-gitlab' include 'server:sonar-auth-ldap' include 'server:sonar-auth-saml' include 'server:sonar-ce' include 'server:sonar-ce-common' include 'server:sonar-ce-task' include 'server:sonar-ce-task-projectanalysis' include 'server:sonar-db-core' include 'server:sonar-db-dao' include 'server:sonar-db-migration' include 'server:sonar-main' include 'server:sonar-process' include 'server:sonar-server-common' include 'server:sonar-telemetry' include 'server:sonar-telemetry-core' include 'server:sonar-webserver' include 'server:sonar-webserver-api' include 'server:sonar-webserver-auth' include 'server:sonar-webserver-common' include 'server:sonar-webserver-core' include 'server:sonar-webserver-es' include 'server:sonar-webserver-webapi' include 'server:sonar-webserver-webapi-v2' include 'server:sonar-webserver-pushapi' include 'server:sonar-webserver-ws' include 'server:sonar-alm-client' include 'server:sonar-webserver-monitoring' include 'sonar-application' include 'sonar-core' include 'sonar-sarif' include 'sonar-duplications' include 'sonar-markdown' include 'sonar-plugin-api-impl' include 'sonar-scanner-engine' include 'sonar-scanner-engine-shaded' include 'sonar-scanner-protocol' include 'sonar-shutdowner' include 'sonar-testing-harness' include 'sonar-testing-ldap' include 'sonar-ws' include 'sonar-ws-generator' ext.isCiServer = System.getenv().containsKey("CIRRUS_CI") // use Settings.getRootDir() so that it doesn't matter which directory you are executing from File extraSettings = new File(rootDir, 'private/private-settings.gradle') if (extraSettings.exists()) { apply from: extraSettings } buildCache { local { enabled = !isCiServer } }