forked from perfectsense/training
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
41 lines (35 loc) · 1.12 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
plugins {
id "com.gradle.enterprise" version "3.1.1"
}
rootProject.name = 'training'
include(':training-frontend')
include(':training-core')
include(':training-site')
include(':training-theme-default')
project(':training-frontend').projectDir = file('frontend')
project(':training-core').projectDir = file('core')
project(':training-site').projectDir = file('site')
project(':training-theme-default').projectDir = file('themes/training-theme-default')
// -- Gradle Cache Server -- //
def gradleCacheUrl = "https://cache.gradle.psdops.com/cache/"
def gradleCacheUsername = System.getenv('GRADLE_CACHE_USERNAME')
def gradleCachePassword = System.getenv('GRADLE_CACHE_PASSWORD')
boolean isCiServer = gradleCacheUsername != null
buildCache {
if (gradleCacheUrl != null) {
local {
enabled = !isCiServer
}
remote(HttpBuildCache) {
push = isCiServer
url = gradleCacheUrl
allowUntrustedServer = true
if (gradleCacheUsername != null && gradleCachePassword != null) {
credentials {
username = gradleCacheUsername
password = gradleCachePassword
}
}
}
}
}