-
Notifications
You must be signed in to change notification settings - Fork 171
/
settings.gradle
74 lines (64 loc) · 2.4 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// publish build scans from CI builds
plugins {
id "com.gradle.develocity" version "3.18.1"
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
}
def isCI = System.getenv('CI') != null
develocity {
server = "https://develocity-staging.eclipse.org"
buildScan {
publishing.onlyIf { true }
obfuscation {
username { name -> isCI ? 'ci' : 'local' }
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0" } }
externalProcessName { processName -> "non-build-process" }
hostname { host -> isCI ? 'ci' : 'local' }
}
uploadInBackground = !isCI
}
}
rootProject.name = 'buildship'
include ':org.gradle.toolingapi'
include ':org.eclipse.buildship.compat'
include ':org.eclipse.buildship.core'
include ':org.eclipse.buildship.ui'
include ':org.eclipse.buildship.feature'
include ':org.eclipse.buildship.site'
include ':org.eclipse.buildship.branding'
include ':org.eclipse.buildship.core.test'
include ':org.eclipse.buildship.ui.test'
include ':org.eclipse.buildship.testdependencies'
if (properties['latest'] == 'true') {
include ':org.eclipse.buildship.gradleprop.provider'
include ':org.eclipse.buildship.gradleprop.ls'
include ':org.eclipse.buildship.gradleprop.feature'
include ':org.eclipse.buildship.kotlindsl.provider'
include ':org.eclipse.buildship.kotlindsl.feature'
include ':org.eclipse.buildship.dcl.feature'
include ':org.eclipse.buildship.dcl.provider'
include ':org.eclipse.buildship.gradleprop.test'
}
include ':org.eclipse.buildship.oomph'
include ':org.eclipse.buildship.oomph.edit'
include ':org.eclipse.buildship.oomph.feature'
include ':org.eclipse.buildship.oomph.test'
// Use local build cache on developer machine and remote cache on CI
String cacheUrl = System.getProperty('gradle.cache.remote.url', '')
String cacheUser = System.getProperty('gradle.cache.remote.username', '')
String cachePassword = System.getProperty('gradle.cache.remote.password', '')
boolean remoteCacheAvailable = cacheUrl != '' && cacheUrl != '' && cachePassword != ''
buildCache {
local {
enabled = !remoteCacheAvailable
}
if (remoteCacheAvailable) {
remote(HttpBuildCache) {
url = cacheUrl
credentials {
username = cacheUser
password = cachePassword
push = true
}
}
}
}