forked from eclipse-buildship/buildship
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
62 lines (55 loc) · 1.93 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
// publish build scans from CI builds
plugins {
id "com.gradle.enterprise" version "3.10"
}
gradleEnterprise {
server = "https://ge.gradle.org"
buildScan {
boolean ci = System.getenv('CI') as boolean
publishAlwaysIf(ci)
uploadInBackground = !ci
}
}
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.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
}
}
}
}