You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings.gradle 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. pluginManagement {
  2. repositories {
  3. maven {
  4. url 'https://repox.jfrog.io/repox/plugins.gradle.org/'
  5. }
  6. }
  7. plugins {
  8. id 'com.bmuschko.docker-remote-api' version '7.3.0'
  9. id 'org.ajoberstar.grgit' version '4.1.1'
  10. }
  11. }
  12. plugins {
  13. id 'com.gradle.enterprise' version '3.15.1'
  14. }
  15. ext.isCiServer = System.getenv().containsKey("CIRRUS_CI")
  16. gradleEnterprise {
  17. if (System.getenv().containsKey('GRADLE_ENTERPRISE_URL')) {
  18. server = System.env.'GRADLE_ENTERPRISE_URL'
  19. }
  20. allowUntrustedServer = true // ensure a trusted certificate is configured
  21. if (isCiServer) {
  22. accessKey = System.env.'GRADLE_ENTERPRISE_KEY'
  23. }
  24. buildScan {
  25. capture { taskInputFiles = true }
  26. uploadInBackground = false
  27. publishAlwaysIf( isCiServer )
  28. }
  29. }
  30. rootProject.name = 'sonarqube'
  31. include 'plugins:sonar-xoo-plugin'
  32. include 'plugins:sonar-education-plugin'
  33. include 'server:sonar-auth-common'
  34. include 'server:sonar-auth-bitbucket'
  35. include 'server:sonar-auth-github'
  36. include 'server:sonar-auth-gitlab'
  37. include 'server:sonar-auth-ldap'
  38. include 'server:sonar-auth-saml'
  39. include 'server:sonar-ce'
  40. include 'server:sonar-ce-common'
  41. include 'server:sonar-ce-task'
  42. include 'server:sonar-ce-task-projectanalysis'
  43. include 'server:sonar-db-core'
  44. include 'server:sonar-db-dao'
  45. include 'server:sonar-db-migration'
  46. include 'server:sonar-main'
  47. include 'server:sonar-process'
  48. include 'server:sonar-server-common'
  49. include 'server:sonar-web'
  50. include 'server:sonar-web:design-system'
  51. include 'server:sonar-webserver'
  52. include 'server:sonar-webserver-api'
  53. include 'server:sonar-webserver-auth'
  54. include 'server:sonar-webserver-common'
  55. include 'server:sonar-webserver-core'
  56. include 'server:sonar-webserver-es'
  57. include 'server:sonar-webserver-webapi'
  58. include 'server:sonar-webserver-webapi-v2'
  59. include 'server:sonar-webserver-pushapi'
  60. include 'server:sonar-webserver-ws'
  61. include 'server:sonar-alm-client'
  62. include 'server:sonar-webserver-monitoring'
  63. include 'sonar-application'
  64. include 'sonar-core'
  65. include 'sonar-duplications'
  66. include 'sonar-markdown'
  67. include 'sonar-plugin-api-impl'
  68. include 'sonar-scanner-engine'
  69. include 'sonar-scanner-engine-shaded'
  70. include 'sonar-scanner-protocol'
  71. include 'sonar-shutdowner'
  72. include 'sonar-testing-harness'
  73. include 'sonar-testing-ldap'
  74. include 'sonar-ws'
  75. include 'sonar-ws-generator'
  76. include 'test-monitoring'
  77. include 'ut-monitoring'
  78. // use Settings.getRootDir() so that it doesn't matter which directory you are executing from
  79. File extraSettings = new File(rootDir, 'private/private-settings.gradle')
  80. if (extraSettings.exists()) {
  81. apply from: extraSettings
  82. }
  83. buildCache {
  84. local {
  85. enabled = !isCiServer
  86. }
  87. remote(HttpBuildCache) {
  88. url = System.env.'GRADLE_ENTERPRISE_URL' + '/cache/'
  89. allowUntrustedServer = true
  90. credentials { creds ->
  91. creds.username = System.env.'GRADLE_ENTERPRISE_USERNAME'
  92. creds.password = System.env.'GRADLE_ENTERPRISE_PASSWORD'
  93. }
  94. enabled = true
  95. push = isCiServer
  96. }
  97. }