2018-03-19 10:42:25 +01:00
|
|
|
rootProject.name = 'sonarqube'
|
2018-02-08 15:01:19 +01:00
|
|
|
|
|
|
|
include 'plugins:sonar-xoo-plugin'
|
|
|
|
|
|
|
|
include 'server:sonar-ce'
|
2018-06-22 16:08:28 +02:00
|
|
|
include 'server:sonar-ce-common'
|
2018-06-22 13:33:23 +02:00
|
|
|
include 'server:sonar-ce-task'
|
2018-06-21 11:47:56 +02:00
|
|
|
include 'server:sonar-ce-task-projectanalysis'
|
2018-02-08 15:01:19 +01:00
|
|
|
include 'server:sonar-db-testing'
|
|
|
|
include 'server:sonar-db-core'
|
|
|
|
include 'server:sonar-db-dao'
|
|
|
|
include 'server:sonar-db-migration'
|
2018-06-21 09:28:15 +02:00
|
|
|
include 'server:sonar-docs'
|
2018-02-08 15:01:19 +01:00
|
|
|
include 'server:sonar-main'
|
|
|
|
include 'server:sonar-process'
|
|
|
|
include 'server:sonar-server'
|
2018-05-25 11:23:29 +02:00
|
|
|
include 'server:sonar-server-common'
|
2018-03-12 10:48:44 +01:00
|
|
|
include 'server:sonar-vsts'
|
2018-02-08 15:01:19 +01:00
|
|
|
include 'server:sonar-web'
|
|
|
|
|
|
|
|
include 'sonar-application'
|
|
|
|
include 'sonar-check-api'
|
|
|
|
include 'sonar-core'
|
|
|
|
include 'sonar-duplications'
|
|
|
|
include 'sonar-markdown'
|
|
|
|
include 'sonar-plugin-api'
|
|
|
|
include 'sonar-scanner-engine'
|
|
|
|
include 'sonar-scanner-engine-shaded'
|
|
|
|
include 'sonar-scanner-protocol'
|
|
|
|
include 'sonar-testing-harness'
|
|
|
|
include 'sonar-ws'
|
|
|
|
include 'sonar-ws-generator'
|
|
|
|
|
2018-03-18 22:13:43 +01:00
|
|
|
// use Settings.getRootDir() so that it doesn't matter which directory you are executing from
|
|
|
|
File extraSettings = new File(rootDir, 'private/settings.gradle')
|
|
|
|
if (extraSettings.exists()) {
|
|
|
|
apply from: extraSettings
|
|
|
|
}
|
2018-08-29 10:25:32 +02:00
|
|
|
|
2019-02-19 16:08:01 +01:00
|
|
|
ext.isCiServer = System.getenv().containsKey("CIRRUS_CI")
|
|
|
|
ext.isMasterBranch = System.getenv()["CIRRUS_BRANCH"] == "master"
|
|
|
|
|
2018-08-29 10:25:32 +02:00
|
|
|
buildCache {
|
|
|
|
local {
|
|
|
|
enabled = !isCiServer
|
|
|
|
}
|
|
|
|
remote(HttpBuildCache) {
|
2019-02-19 16:08:01 +01:00
|
|
|
url = 'http://' + System.getenv().getOrDefault("CIRRUS_HTTP_CACHE_HOST", "localhost:12321") + "/"
|
2018-08-29 10:25:32 +02:00
|
|
|
enabled = isCiServer
|
2019-02-19 16:08:01 +01:00
|
|
|
push = isMasterBranch
|
2018-08-29 10:25:32 +02:00
|
|
|
}
|
|
|
|
}
|