|
|
@@ -10,6 +10,28 @@ pluginManagement { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
plugins { |
|
|
|
id 'com.gradle.enterprise' version '3.15.1' |
|
|
|
} |
|
|
|
ext.isCiServer = System.getenv().containsKey("CIRRUS_CI") |
|
|
|
|
|
|
|
gradleEnterprise { |
|
|
|
if (System.getenv().containsKey('GRADLE_ENTERPRISE_URL')) { |
|
|
|
server = System.env.'GRADLE_ENTERPRISE_URL' |
|
|
|
} |
|
|
|
allowUntrustedServer = true // ensure a trusted certificate is configured |
|
|
|
|
|
|
|
if (isCiServer) { |
|
|
|
accessKey = System.env.'GRADLE_ENTERPRISE_KEY' |
|
|
|
} |
|
|
|
|
|
|
|
buildScan { |
|
|
|
capture { taskInputFiles = true } |
|
|
|
uploadInBackground = false |
|
|
|
publishAlwaysIf( isCiServer ) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
rootProject.name = 'sonarqube' |
|
|
|
|
|
|
|
include 'plugins:sonar-xoo-plugin' |
|
|
@@ -62,7 +84,6 @@ include 'sonar-ws-generator' |
|
|
|
include 'test-monitoring' |
|
|
|
include 'ut-monitoring' |
|
|
|
|
|
|
|
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') |
|
|
@@ -74,5 +95,15 @@ buildCache { |
|
|
|
local { |
|
|
|
enabled = !isCiServer |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
remote(HttpBuildCache) { |
|
|
|
url = System.env.'GRADLE_ENTERPRISE_URL' + '/cache/' |
|
|
|
allowUntrustedServer = true |
|
|
|
credentials { creds -> |
|
|
|
creds.username = System.env.'GRADLE_ENTERPRISE_USERNAME' |
|
|
|
creds.password = System.env.'GRADLE_ENTERPRISE_PASSWORD' |
|
|
|
} |
|
|
|
enabled = true |
|
|
|
push = isCiServer |
|
|
|
} |
|
|
|
} |